-
☆ A M B ☆
- 1,056 Posts
Quote from: lowelife at Sep 23, 2010, 02:32 PM
TinyMCE has a parameter called "extended_valid_elements" which apparently lets you customize the internal filters.
http://www.learnwebdesignonline.com/tutorials/allow-script-iframe-tinymce has instructions for Joomla.
I haven’t figured out the modxcms solution, so I’m all ears and will probably post a separate thread.
For those of you still looking, inline IFRAME support is indeed an option without having to resort to a Chunk:
I simply dropped the following code into the "Custom Parameters" field on the Configuration tab of the TinyMCE Plugin
extended_valid_elements : "iframe[src|width|height|name|id|class|align|style|frameborder|border|allowtransparency]",
This works well and with the Cleanup option still enabled, too.
Quote from: pixelchutes at Dec 10, 2010, 12:54 PM
For those of you still looking, inline IFRAME support is indeed an option without having to resort to a Chunk:
I simply dropped the following code into the "Custom Parameters" field on the Configuration tab of the TinyMCE Plugin 
extended_valid_elements : "iframe[src|width|height|name|id|class|align|style|frameborder|border|allowtransparency]",
This works well and with the Cleanup option still enabled, too.
I just ran into a need for this. Worked great, thank you!
Does anyone have any pointers to a tutorial on how to do this in Revo? I know it’s a custom parameter but I need somewhere to start with that.
Does anyone know where to make these settings for TinyMCE in Revolution?
I found something similar in this file:
/assets/components/tinymce/xconfig.js
However, this file has iframes already entered like this:
var tinymce_valid_elements = ""
+"iframe[align<bottom?left?middle?right?top|class|frameborder|height|id"
+"|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style"
+"|title|width|allowfullscreen],"
I tried added iframes here, as some seem to suggest:
var tinymce_extended_valid_elements = "iframe[src|width|height|name|id|class|align|style|frameborder|border|allowtransparency]";
...but nothing... TinyMCE STILL removes any iframes that I put in the html editor. Please help, thanks.
(MODx Revolution 2.0.4-pl2, TinyMCE 4.2.2)