[solved] TinyMCE parsing content inside {php} tags

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
pixelenvy

[solved] TinyMCE parsing content inside {php} tags

Post 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?
Last edited by pixelenvy on Wed Nov 14, 2007 8:57 pm, edited 1 time in total.
cyberman

Re: TinyMCE parsing content inside {php} tags

Post by cyberman »

Switch the editor off.
pixelenvy

Re: TinyMCE parsing content inside {php} tags

Post by pixelenvy »

We have to keep it on for the client.. is there a way to have TinyMCE just ignore everything inside that tag??
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: TinyMCE parsing content inside {php} tags

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
pixelenvy

Re: TinyMCE parsing content inside {php} tags

Post by pixelenvy »

Awesome.. thanks for the tip calguy! :)
Locked

Return to “CMSMS Core”