Hi,
I am trying to place some PHP into a pages content in Source mode of the WYSIWYG editor. I have found a related post here http://get-simple.info/forum/topic/2370/...-the-page/
This has got me on track. I have installed Chris's Exec-PHP plugin and now i can execute PHP code within a page's content. Later in the above mentioned post the author also had a problem with CKEditor treating the PHP code wrongly, Connie suggested the addition of the CKEditor option
This worked a treat to preserve the PHP code. So now after adding this i for some reason no longer have the WYSIWYG editor available. When editing a page it always shows source mode without the toolbar.
Is there a way to maintain the WYSIWYG mode yet still preserve (protect?) the PHP snippets?
TIA,
Ben
I am trying to place some PHP into a pages content in Source mode of the WYSIWYG editor. I have found a related post here http://get-simple.info/forum/topic/2370/...-the-page/
This has got me on track. I have installed Chris's Exec-PHP plugin and now i can execute PHP code within a page's content. Later in the above mentioned post the author also had a problem with CKEditor treating the PHP code wrongly, Connie suggested the addition of the CKEditor option
Quote:config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP code
This worked a treat to preserve the PHP code. So now after adding this i for some reason no longer have the WYSIWYG editor available. When editing a page it always shows source mode without the toolbar.
Is there a way to maintain the WYSIWYG mode yet still preserve (protect?) the PHP snippets?
TIA,
Ben