Disabling some of the buttons on BP-TinyMCE (3 posts)

  1. jaseyb
    Posted 4 years ago #

    Another great plugin. Thankyou

    I would like to disable some of the buttons (or simply have them disappear) as certain items (such as text colour) will not have any effect on my site as the tags will be filtered out. This will mean that I also avoid any unnecessary support questions from my users

    PS Please start to accept donations, I would love to buy you a few coffees!


  2. Boone Gorges
    Plugin Author

    Posted 4 years ago #

    It's possible to do this with a filter or two. If the buttons you want to remove are created by a plugin, you can use this technique: https://github.com/boonebgorges/buddypress-docs/blob/master/includes/templatetags-edit.php#L171

    If the buttons are part of TinyMCE itself, you can use this technique that I use to remove the wp_more button https://github.com/boonebgorges/buddypress-docs/blob/master/includes/templatetags-edit.php#L149 This technique is pretty hackish, but I don't know a better way to do it.

    I like coffee! :) http://teleogistic.net/donate/

  3. Phlux0r
    Posted 4 years ago #

    See my reply here how I changed the WYSIWYG buttons:

    If you want to avoid using the full Tiny MCE toolbar, you may want to switch to the Teeny WYSIWYG by implementing the following filter hook:

    add_filter( 'bp_tinymce_is_teeny', 'my_bp_tinymce_is_teeny' );
        function my_bp_tinymce_is_teeny($is_teeny) {
            return true;

    You may need to put this into the bp-custom.php in your plugins folder as in my case having it in my theme functions.php didn't work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BP-TinyMCE
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic