[Yanel-dev] Allow iframe by TinyMCE
Michael Wechner
michael.wechner at wyona.com
Wed Oct 26 16:27:14 CEST 2011
Hi
Somebody recently asked me how to make TinyMCE not drop iframe code when
using the HTML mode.
I think the following patch should work:
git diff src/resources/tinymce/htdocs/js/tinymceinit_3_3_5_1.js
diff --git a/src/resources/tinymce/htdocs/js/tinymceinit_3_3_5_1.js
b/src/resources/tinymce/htdocs/js/tinymceinit_3_3_5_1.js
index 3784be5..15350f9 100644
--- a/src/resources/tinymce/htdocs/js/tinymceinit_3_3_5_1.js
+++ b/src/resources/tinymce/htdocs/js/tinymceinit_3_3_5_1.js
@@ -7,6 +7,7 @@ tinyMCE.init({
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
+ extended_valid_elements : "iframe[src|width|height|name|align]",
entity_encoding : "numeric",
file_browser_callback : 'yanelLookupResource',
});
I will test it some more and if no problems or objections, then I would
commit/push it.
Thanks
Michael
More information about the Yanel-development
mailing list