WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Insert Link Class] Plugin breaks TinyMCE editor

[Plugin: Insert Link Class] Plugin breaks TinyMCE editor

  • Hi,

    I’m the author of the jquery-colorbox plugin.
    My plugin adds a link class just like your does.
    Unfortunately, your plugin does not check if the option “styleselect” is already in the TinyMCE options array.
    This breaks the editor if the option was already added to the options.

    Could you please change the following method:

    function TinyMCEButtons($orig) {
        return array_merge($orig, array('styleselect'));
    }

    to:

    function TinyMCEButtons($orig) {
        if(!in_array('styleselect',$orig)){
            array_push($orig,'styleselect');
        }
        return $orig;
    }

    Cheers,
    Arne

    http://wordpress.org/extend/plugins/insert-link-class/

  • The topic ‘[Plugin: Insert Link Class] Plugin breaks TinyMCE editor’ is closed to new replies.