## Configuring buttons on the TimyMCE Toolbar in WordPress (bbPress environment)

Question

If I use this php code to display a Tiny MCE Editor in my bbPress forum (front end):

//editor bbpress
function bsp_enable_visual_editor( $args = array() ) { global$bsp_style_settings_form ;
$args['tinymce'] = true; if ($bsp_style_settings_form['Show_editorsactivate'] == 1)  $args['quicktags'] = false; return$args;
}


It looks like this:

Notice that it has a Insert Image button?

Now, if I change code by inserting a single line, like this:

//editor bbpress
function bsp_enable_visual_editor( $args = array() ) { global$bsp_style_settings_form ;
$args['tinymce'] = true;$args['teeny'] = false;
if ($bsp_style_settings_form['Show_editorsactivate'] == 1)$args['quicktags'] = false;
return $args; }  I introduced the $args['teeny'] = false; line so now I get this tool bar:

I prefer this toolbar because it provides extra buttons. However:

1. I want to remove the Insert Read More button.
2. I want to replace that button with the previous Insert Image button.

I don’t know how to do this.

0
3 years 2019-10-31T03:26:47-05:00 0 Answers 109 views 0