2015-03-18, 20:44:48
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
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