TinyMCE rewriting CustomContent tags???? Topic is solved

General project discussion. NOT for help questions.
Post Reply
Jack @ PharSide

TinyMCE rewriting CustomContent tags????

Post 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
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: TinyMCE rewriting CustomContent tags????

Post 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.
Jack @ PharSide

Re: TinyMCE rewriting CustomContent tags????

Post 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.
brippon
Forum Members
Forum Members
Posts: 18
Joined: Wed Feb 07, 2007 10:28 pm

Re: TinyMCE rewriting CustomContent tags????

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: TinyMCE rewriting CustomContent tags????

Post 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...
Post Reply

Return to “General Discussion”