Support iframes in editor

Adding this to the functions.php of your wordpress theme will allow you to add iframes to the tinymce editor.

 

 

add_filter('tiny_mce_before_init', create_function( '$a','$a["extended_valid_elements"] = "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]"; return $a;') );

Leave a comment