Title: [Plugin: Insert Link Class] Plugin breaks TinyMCE editor
Last modified: August 20, 2016

---

# [Plugin: Insert Link Class] Plugin breaks TinyMCE editor

 *  [techotronic](https://wordpress.org/support/users/techotronic/)
 * (@techotronic)
 * [15 years ago](https://wordpress.org/support/topic/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/](http://wordpress.org/extend/plugins/insert-link-class/)

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

 * ![](https://s.w.org/plugins/geopattern-icon/insert-link-class.svg)
 * [Insert Link Class](https://wordpress.org/plugins/insert-link-class/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-link-class/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-link-class/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-link-class/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-link-class/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-link-class/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [techotronic](https://wordpress.org/support/users/techotronic/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-insert-link-class-plugin-breaks-tinymce-editor/)
 * Status: not resolved