7
votes

I've got a site running Joomla with TinyMCE set as the editor. One of the sites editors is now trying to embed a media player into an article but TinyMCE keeps messing up the HTML.

I've tried setting the Extended Valid Elements, in the plugin config, to *[*] to allow anything and everything but it's not working.

What I'd like is to disable the code stripping "feature" from TinyMCE all together. I don't want it trying to validate my HTML or anything like that.

How can I disable the code stripping?

4

4 Answers

2
votes

If all else fails, you can turn off all of the editors in Joomla:

Go to: extensions (Should be on the top tab control) Click: Plug-in Manager.
This will take you to a list of all of Joomla's plugins. Disable any plugins that start with "-editor".

This should leave you with plain-text editor which edits and saves Html without regard for what's in it. If you can find a better solution, use that but this worked when everything else failed for me.

0
votes

@dave: Here is the way you can stop the HTML striping: http://dijoomla.blogspot.com/2009/02/turn-off-tinymce-cleanup-code.html .

But it's recommended that you shouldn't do that, since the striping feature is for preventing exploits. Instead, you can consider using a tinymce plugin, such as Media.

0
votes
Note:This works in 2.5 using JCE Editor (not sure 1.5)

Go to ...administrator>Global Configuration>Text Filters... Now set no filtering on those permission levels you choose. Not your public levels to protect security. I can do this after updating to JCE and dropping TinyMCE.

I use the free JCE editor (under Components tab once installed), you can customize it much better with many added features OR un-customize it as needed many times.

0
votes

In Joomla 2.5, go to plug-in manager > Editor - TinyMCE. In the basic options, juste remove iframe from the Prohibited Elements.