moved assignment of page editor type to PHP_code