Page 1 of 1

[solved] TinyMCE parsing content inside {php} tags

Posted: Tue Nov 13, 2007 2:52 pm
by pixelenvy
I have some {php} {/php} echoing some html on a website.. and TinyMCE is parsing the HTML inside the {php} tags..

How can I get TinyMCE to ignore what's going on inside those tags?

Re: TinyMCE parsing content inside {php} tags

Posted: Tue Nov 13, 2007 6:29 pm
by cyberman
Switch the editor off.

Re: TinyMCE parsing content inside {php} tags

Posted: Wed Nov 14, 2007 1:19 am
by pixelenvy
We have to keep it on for the client.. is there a way to have TinyMCE just ignore everything inside that tag??

Re: TinyMCE parsing content inside {php} tags

Posted: Wed Nov 14, 2007 1:31 am
by calguy1000
Wysiwyg editors (besides being evil) are not designed to handle php code.

Your best bet would be to re-think your page templates a bit so that you can put the php code into either a different content block, with the wysiwyg shut off for that content block, or into User Defined Tags.

Re: TinyMCE parsing content inside {php} tags

Posted: Wed Nov 14, 2007 8:57 pm
by pixelenvy
Awesome.. thanks for the tip calguy! :)