Title: custom buttons?
Last modified: August 31, 2016

---

# custom buttons?

 *  [Spitt](https://wordpress.org/support/users/spitt/)
 * (@spitt)
 * [10 years ago](https://wordpress.org/support/topic/custom-buttons-4/)
 * Can you please add the ability to add custom buttons to the TinyMCE WordPress
   plugin?
 * I would like to add [emember_protected] and [spoiler], but I am sure there are
   others other people would like to add as well.
 * [https://wordpress.org/plugins/tinymce-advanced/](https://wordpress.org/plugins/tinymce-advanced/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [10 years ago](https://wordpress.org/support/topic/custom-buttons-4/#post-7338471)
 * Hello
 * I know that there are answers about add custom button to TinyMCE here.
    [https://wordpress.org/support/topic/adding-additional-custom-buttons?replies=4](https://wordpress.org/support/topic/adding-additional-custom-buttons?replies=4)
 * I am able to add custom button to the TinyMCE but it is not listed or not even
   showing in the TinyMCE Advanced settings page.
 * But I want to know how to add custom button to the list of unused buttons in 
   TinyMCE Advanced settings page?
 * Thanks.
 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [10 years ago](https://wordpress.org/support/topic/custom-buttons-4/#post-7338494)
 * > …how to add custom button to the list of unused buttons in TinyMCE Advanced
   > settings page?
 * There used to be a filter for that (long ago). Had to remove it as people would
   remove other plugins buttons and then go complain to the plugin authors. Currently
   TinyMCE Advanced doesn’t touch any third-party buttons which seems to be best
   🙂
 *  [Sciscitator](https://wordpress.org/support/users/sciscitator/)
 * (@sciscitator)
 * [10 years ago](https://wordpress.org/support/topic/custom-buttons-4/#post-7338501)
 * > Currently TinyMCE Advanced doesn’t touch any third-party buttons which seems
   > to be best 🙂
 * Is this for sure? I currently have a problem displaying a Tinymce button of my
   own plugin when running Tinymce Extended. As soon as I activate your plugin the
   button disappears. Without it it gets displayed as expected.
 * This is the code where I register the Tinymce button:
 *     ```
       // Add a callback to register our tinymce plugin
           add_filter("mce_external_plugins", function($plugin_array) {
               $plugin_array['pkt_footnotes_button'] =
                   dirname(plugin_dir_url( __FILE__ )) . '/assets/tinymce-shortcode.js';
               return $plugin_array;
           }); 
   
           // Add a callback to add our button to the TinyMCE toolbar
           add_filter('mce_buttons', function($buttons) {
               $buttons[] = "pkt_footnotes_button";
               return $buttons;
           });
       ```
   
 * The problem seems to be connected with a recent update of TinyMCE Extended. An
   earlier version worked without problems. Do you have any idea how to solve this
   issue?
 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [10 years ago](https://wordpress.org/support/topic/custom-buttons-4/#post-7338502)
 * [@sciscitator](https://wordpress.org/support/users/sciscitator/) hm, you are 
   talking about this plugin (TinyMCE Advanced), right?
 * Just re-tested behaviour with another WordPress plugin that adds another external
   TinyMCE plugin. All works as expected, any buttons or menu items added by the
   other plugin are present at the places they were added regardless of whether 
   TinyMCE Advanced is enabled or disabled.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘custom buttons?’ is closed to new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [spoiler](https://wordpress.org/support/topic-tag/spoiler/)

 * 4 replies
 * 4 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/custom-buttons-4/#post-7338502)
 * Status: not a support question