Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove specific buttons from TinyMCE


  • Divvy
    Participant

    @divvy

    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

    @divvy

    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

    @keithrowley

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


    Robin W
    Moderator

    @robin-w

    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