I am trying to figure out how to remove specific buttons from the TinyMCE editor. I have researched the arguments in the codex but for TinyMCE is just says array and not sure if I can include some paramters in my arguments of which buttons to show/hide?
I am using the editor in a gravity form and my code is as follows so far
add_action( 'gform_field_input', 'gforms_wp_editor', 10, 5 );
function gforms_wp_editor( $input, $field, $value, $lead_id, $form_id ) {
if( $field["cssClass"] == 'richtext' ) {
ob_start();
wp_editor( $value, "input_{$form_id}_{$field['id']}",
array(
'media_buttons' => false,
'quicktags' => false,
'textarea_name' => "input_{$field['id']}"
) );
$input = ob_get_clean();
}
return $input;
}
I have removed the HTML tab using the quicktags to false, so hoping I can do something similar to strip out buttons from the editor.
buttons shown right now with the code above are as follows

Note: ‘teeny’ editor is now what I need, just in case someone suggests
Thanks
The
tinymceparameter allows you to pass configuration options directly to TinyMCE – see the docs for theme_advanced_buttons and theme_advanced_disable, and the button reference.To show only the bold, italic and underline buttons:
Or, to show everything except the bold, italic and underline buttons:
As requested, your code modified: