WordPress.org

Ready to get started?Download WordPress

Forums

Insert Link Class
Plugin breaks TinyMCE editor (1 post)

  1. techotronic
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic