1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Remove specific buttons from TinyMCE

Discussion in 'PHP' started by Divvy, Aug 22, 2017.

  1. #1
    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' );
    PHP:

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

    I want to hide those:

    [​IMG]
    SEMrush
    Can someone help me?

    Thanks :)
     
    Divvy, Aug 22, 2017 IP
    SEMrush
  2. Divvy

    Divvy Well-Known Member

    Messages:
    727
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    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' );
    PHP:
     
    Divvy, Aug 22, 2017 IP