WordPress 2.8 – no more iframe?
-
I am currently using wordpress version 2.8 with tinymce-advanced version 3.1. I wrote a tool for our bloggers to use that basically works like the Tinymce-advanced “emotions” button. The user clicks on their choice from the pop-up window, and then I insert some pre defined code into the WYSIWYG editor.
I had to make a modification to my wordpress in order for the WYSIWYG editor to recognize the “iframe” element. I found the following line in the file wp-includes/js/tinymce/tiny_mce_config.php
// Add external plugins and init $content .= $ext_plugins . 'tinyMCE.init({' . $mce_options . '});';
And I changed it to:
// Add external plugins and init $content .= $ext_plugins . 'tinyMCE.init({extended_valid_elements : "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]",' . $mce_options . '});';
Before I updated my wordpress, this solution was working.
Now that I am running wordpress 2.8, this solution is no longer working. The “iframe” element keeps disappearing inwordpress 2.8.
How can I make it so that I can insert an iframe into my blog without the WYSIWYG editor stripping it out?
- The topic ‘WordPress 2.8 – no more iframe?’ is closed to new replies.