Every time I save a node with a PHP script + HTML in body with ckeditor (input format PHP), the links of the html code are changed to something like:

<!--{cke_protected}<%3Fphp print %24path%3B %3F>-->.

How can I avoid this?

Comments

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Which version of CKEditor library do u use?
U try to update to last version from ckeditor.com?

Could u paste here example of code which u try to use?

Greetings

rogeriodec’s picture

I was with version 3.6.3, updated to 3.6.4 (latest) but the error continues to occur.
It's been quite difficult to tell the cause, even as I tried reducing the php code to illustrate, but with the code reduced the error does not occur.
But basically here are the steps I take:

  1. I use a page node with the input format to "PHP Code"
  2. I edit the code in Notepad++ software and paste in the text of the page (using source code)
  3. If I immediately saved the page the problem does not occur.
  4. If I use "preview", the problem occurs.
rogeriodec’s picture

Issue summary: View changes

code