Page 1 of 1

TinyMCE rewriting CustomContent tags????

Posted: Sun Dec 14, 2008 4:50 pm
by Jack @ PharSide
I have always hated TinyMCE but it has really been getting better and since FCKEditor is close to dead with CMSMS, it has been growing with us quite a bit. However, I am starting to notice some really annoying code rewriting it does and in one case, it ALWAYS rewrite the "-->" or ">" in the commonly used CC tags. Is there anyway to bypass this. I don't want Tiny editing ANYTHING. I would rather the editor not know how to display then to rewrite it and I am sure you all agree.

Anything possible here or should I just keep these in Global Content Blocks like I am now?

This is the correct script:

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('TestGroup')}
This is what TinyMCE rewrites it to everytime I open a page for editing:

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('TestGroup')}
Thanks,
-J

Re: TinyMCE rewriting CustomContent tags????

Posted: Mon Dec 15, 2008 2:33 pm
by Silmarillion
If you use smarty-tags. don't use wysiwygs. It's as simple as that... Tiny has no way of knowing what you want to do with curly braces for instance, so it does the best it can.
No nice way of fixing this, so, turn off wysiwyg.

sil.

Re: TinyMCE rewriting CustomContent tags????

Posted: Mon Dec 15, 2008 2:56 pm
by Jack @ PharSide
Thanks but that is not an option. Besides, this only happens so far with CC tags. Will need to write an exception in there somewhere but that is only a workaround for me. I hardly ever use the WYSIWYG editors but clients do all the time.

Re: TinyMCE rewriting CustomContent tags????

Posted: Fri May 29, 2009 4:34 pm
by brippon
Another frustrating limitation of TinyMCE.

I too tried to find a setting that would prevent the behaviour, but in the end put

Code: Select all

{assign var='loggedin' value=$ccuser->loggedin()}
in the template and used

Code: Select all

{if $loggedin}
in the content, which TinyMCE does't mangle.

Brian

Re: TinyMCE rewriting CustomContent tags????

Posted: Wed Jul 22, 2009 2:57 am
by Dr.CSS
Best to use a GCB with wysiwyg turned off, most times even if you get this to work in a page content edit box someone will come along and try to use tiny to edit something and it will get eaten again...