I am trying to use PHP code format and if I save any page that has PHP code on it, for example

echo "Hello";

When I go back to edit it, CKeditor has changed it to

Hello

Comments

mkesicki’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed

Can you explain for what reason you try use php code ? If you want to mark content as 'code' (drupal style) please insert it in tag.
If this doesn't resolve your problem please write more information and reopen this ticket.

dczepierga’s picture

Status: Fixed » Postponed (maintainer needs more info)
carlos.macao’s picture

The same for me. If I try to edit any ancient node with php content, the php code is replaced by the rendered output and disappears. Returning to 7.x-1.2 solves this problem.

dczepierga’s picture

Hi,

We add new feature to CKEditor module: #1280298: [D7] Add configuration option to disable text format filters in filter/xss request.
It should help in this case. Pls update to last DEV version and check does it help or not.

Greetings

carlos.macao’s picture

It works! Thanks.

dczepierga’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ok, so i mark is as fixed.

Greetings

tdurocher’s picture

Still seeing this in 7.x-1.4. CKEditor version is 3.6. All PHP is stripped as soon as I go back to Rich Text editor. This is on a custom block and PHP Filter is enabled on the block. Am I supposed to set a configuration option to allow this?

tdurocher’s picture

Anybody? This does not seem to be fixed. Should I open a new issue?

mkesicki’s picture

@tdurocher
yes you can open new issue. Please remember to add some example what you wish to achieve.