Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM ckeditor replaces <? with <!--? and ?> with ?-->
#1
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
Reply
#2
you cant, use the dynpages plugin, or search the forum for the several threads that already exist on this.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)