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
TinyMCE strips out various html elements
Re: TinyMCE strips out various html elements
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
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.
Re: TinyMCE strips out various html elements
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
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.
Re: TinyMCE strips out various html elements
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)
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)
Re: TinyMCE strips out various html elements
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 }
Re: TinyMCE strips out various html elements
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
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