WordPress.org

Support

Support » Plugins and Hacks » [Plugin: TSL iframe unfilter] Resolving TinyMCE unfilter conflicts

[Plugin: TSL iframe unfilter] Resolving TinyMCE unfilter conflicts

  • This plugin breaks other TinyMCE unfilter plugins like HTML5ify which also modify the ‘extended_valid_elements’ array element. Fixed by appending to ‘extended_valid_elements’ if it exists, similar to code from HTML5ify:

    function unfilter_iframe($initArray) {
      if ( !empty($initArray['extended_valid_elements']) )
        $initArray['extended_valid_elements'] .= ',';
      else
        $initArray['extended_valid_elements'] = '';
    
    	$initArray['extended_valid_elements'] .= "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]";
    	return $initArray;
    }

    http://wordpress.org/extend/plugins/tsl-iframe-unfilter/

  • The topic ‘[Plugin: TSL iframe unfilter] Resolving TinyMCE unfilter conflicts’ is closed to new replies.