TinyMCE strips out various html elements

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
stevegos

TinyMCE strips out various html elements

Post by stevegos »

Hi,

Any way to stop TinyMCE stipping out various html elements that I need to manually insert. Esentially just leave all the html alone.

This is becoming quite a problem...

Insert Javascript and everything in { curly brackets } is removed.
Add a Google map link and the is stripped off
Add some advanced flash elements and the is removed

I've really really looked around the forums on this one. Loads of people with this problem from time to time. Loads of different answers, not many that work. Adding extra code to the Extra Config section of the advanced config doesn't work.
Have looked on the TinyMCE wiki and just got confued!

I know I can turn off the WYSIWYG, but that doesn't help when the client needs to update pages.

Any ideas please?

Thanks, Steven
uniqu3

Re: TinyMCE strips out various html elements

Post by uniqu3 »

Hi,

did you try in the Admin/TinyMCE/Advanced unchecking Force clean on paste?

Here is the solution found in forums:
http://forum.cmsmadesimple.org/index.ph ... #msg123773
Last edited by uniqu3 on Mon Apr 06, 2009 9:00 pm, edited 1 time in total.
stevegos

Re: TinyMCE strips out various html elements

Post by stevegos »

Sorry to say that didn't work. I added the extra code to that file.

As a test I manually added some code to embed a Google map onto the page (which I've copied below) and even after adding the code and changing back from html to edit view it removed the content. At this point I hadn't even saved the page!

I am using version 1.5.3 but this has been a problem for quite a few verisons at least.

The "unchecking Force clean on paste" didn't work either. I think that may be when you are pasting into the wysiwyg editor from word or similar.

Any more ideas anyone?


View Larger Map

All i'm left with is...


View Larger Map
Last edited by stevegos on Tue Apr 07, 2009 12:33 pm, edited 1 time in total.
uniqu3

Re: TinyMCE strips out various html elements

Post by uniqu3 »

Hi,

to use iframes you will need a plugin if i remember right, the plugin is called piframe or similar.
But for google maps i would use CGGoogleMaps (at least i think its called like that)
Bigge

Re: TinyMCE strips out various html elements

Post by Bigge »

To use javascript you have to use the {literal} and {/literal} to surround the code or if you just what to show the symbols use { for { and } for }
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: TinyMCE strips out various html elements

Post by RonnyK »

Yep.... get rid of the WYSIWYG for code.....

I normally UNcheck the "allow wysiwyg on GCB" in Global Settings. I then create a UDT with the logic inside.... As the GCB will be having NO wysiwyg, it doesnt try to encode the characters....

In the content-page, you put the GCB where the logic is supposed to be....

Ronny
Locked

Return to “Modules/Add-Ons”