[Yanel-usage] TinyMCE extended_valid_elements

Michael Wechner michael.wechner at wyona.com
Tue Sep 3 15:42:29 CEST 2013


Hi

I have updated the extended_valid_elements of the TinyMCE resource

git diff src/resources/tinymce/htdocs/js/tinymceinit.js
diff --git a/src/resources/tinymce/htdocs/js/tinymceinit.js 
b/src/resources/tinymce/htdocs/js/tinymceinit.js
index 04f9dc0..ecb3281 100644
--- a/src/resources/tinymce/htdocs/js/tinymceinit.js
+++ b/src/resources/tinymce/htdocs/js/tinymceinit.js
@@ -7,7 +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]",
+        extended_valid_elements : 
"iframe[src|width|height|name|align],div[*],script[*]",
         entity_encoding : "numeric",
         file_browser_callback : 'yanelLookupResource',
  });

which allows to add code like for example

<div data-configid="1183200/1410969" style="width: 560px; height: 398px;" class="issuuembed"> </div>
<script type="text/javascript" src="//e.issuu.com/embed.js" async="true"></script>

because otherwise the attributes like for example data-configid and async would be removed when TinyMCE is saving.

HTH

Michael


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-usage/attachments/20130903/03b808ac/attachment.html>


More information about the Yanel-usage mailing list