I am having issues with this scenario:
I have a document that includes video files that are hosted on Vimeo. The imbed code that Vimeo produces are held within iframes. Whenever I use the MODx Manager to edit the document (that contains the videos) the iframe imbed code goes missing? It looks like TnyMCE just strips it out? I have tried placing the iframe code inside paragraph tags but the same thing happens.
What I have been doing is copying the page code from the browser page before editing the MODx document. This way I have a code source with all the ifame imbed code intact. This is less than ideal.
Any ideas on what to do here?
Thanks!
-
☆ A M B ☆
- 24,524 Posts
That’s TinyMCE being overly helpful.
You should read in the documentation about valid elements.
You have to add valid elements in your tinymce init, otherwise tinymce will delete those elements:
Add:
extended_valid_elements : "iframe[src|width|height|name|align]",
You can add this in the plugin’s configuration.