Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP in page content
#1
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

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
Reply


Messages In This Thread
PHP in page content - by zig - 2011-09-23, 02:53:13
PHP in page content - by mvlcek - 2011-09-23, 03:58:28
PHP in page content - by mvlcek - 2011-09-23, 04:31:36
PHP in page content - by zig - 2011-09-23, 04:38:21
PHP in page content - by roy_b8te - 2011-10-06, 10:10:33
PHP in page content - by Darin87 - 2011-10-07, 15:51:21
PHP in page content - by Connie - 2011-10-07, 17:08:31
PHP in page content - by roy_b8te - 2011-10-07, 21:17:34
PHP in page content - by Darin87 - 2011-10-08, 17:20:50
PHP in page content - by Darin87 - 2011-10-08, 17:21:51



Users browsing this thread: 1 Guest(s)