GetSimple Support Forum
PROBLEM ckeditor replaces <? with <!--? and ?> with ?--> - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: PROBLEM ckeditor replaces <? with <!--? and ?> with ?--> (/showthread.php?tid=7151)



ckeditor replaces <? with <!--? and ?> with ?--> - df8oe - 2015-03-18

I must enter php-code in ckeditor.

It is quite easy in switching to plain-text-mode, entering the code and saving it. Everything works now.

But when I open the page again for editing it comments my code so that it is not working any more...

The only way is:
- opening the page in editor
- switching to plain text editor
- removing the added singns !-- and --
- saving again

That is quite complicate when I do not remember which page contains <? and which does not.

The effect is reproducable in a very easy way (and so I think it is an editor problem at all):

- I enter plain-text mode
- I type in the line <? echo "hello world"; ?>
- I switch back to wysiwyg-mode (now line disappears - that is not a bug and quite normal), but:
- when I enter plain-text mode again, the line was changed to <!--? echo "hello world"; ?-->

The only thing I want is that ckeditor does not touch any lines I entered in plain-text mode containing <? and ?>

I have googled much and found suggestions about adding protectedSource.push (...) to config.js - but that does not change anything for me...

Any ideas how to turn off this (i think security) behaviour?

Best regards
Andreas


RE: ckeditor replaces <? with <!--? and ?> with ?--> - shawn_a - 2015-03-18

you cant, use the dynpages plugin, or search the forum for the several threads that already exist on this.