Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove specific buttons from TinyMCE

  • @divvy

    Participant

    I’m using this guide to show TinyMCE in my bbpress forum:
    https://codex.bbpress.org/enable-visual-editor/

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    Is it possible to remove or hide some buttons in Visual tab?

    I want to hide those:

    Can someone help me?

    Thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • @divvy

    Participant

    Done. Thank you anyway 🙂

    Here goes the correct code for who might be interested:

    function bbp_enable_visual_editor( $args = array() ) {
    $args['tinymce'] = true;
    $args['teeny'] = false;
    $args['tinymce'] = array( 
    'toolbar1' =>'bold, italic, blockquote',
    );
    return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    @keithrowley

    Participant

    A thousand than you’s! Worked first time and I am grateful.

    @robin-w

    Moderator

    great – glad you are fixed

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar