WordPress.org

Ready to get started?Download WordPress

Forums

TSL iframe unfilter
Resolving TinyMCE unfilter conflicts (1 post)

  1. miqronaut
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic