bookmark_bordergform_rich_text_editor_buttons_FORM

Description

Filters the rich text editor buttons for a specific form.

Usage

add_filter( 'gform_rich_text_editor_buttons_2', 'my_function', 10, 2 );

Parameters

  • $mce_buttons array
    Array of buttons to include within the TinyMCE editor inside Gravity Forms

  • $editor_id string
    The HTML element ID for the field using the rich text editor.

  • $field_object object
    Object containing information about the field.

Examples

function my_function() {
    $mce_buttons = array( 'bold', 'italic', 'bullist' ); // Enable only Bold, Italic and Bullet List buttons
    return $mce_buttons;
}
add_filter( 'gform_rich_text_editor_buttons_2', 'my_function', 10, 2 );

Source Code

This action hook is located in class-gf-field-textarea.php