gform_rich_text_editor_buttons_row_two

Description

The “gform_rich_text_editor_buttons_row_two” filter in Gravity Forms controls the buttons displayed in the second row within the Gravity Forms rich text editor.

For more specific use case examples please see our documentation for the gform_rich_text_editor_buttons parent filter.

Usage

Applies to all forms:

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

To target a specific form append the form id to the hook name. (format: gform_rich_text_editor_buttons_row_two_FORMID)

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

To target a specific form field append the form id and field id to the hook name. (format: gform_rich_text_editor_buttons_row_two_FORMID_FIELDID)

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

Parameters

  • $mce_buttons array

    Array of second row buttons to include within the TinyMCE editor inside Gravity Forms.

array( 'strikethrough', 'hr', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo', 'wp_help' );
  • $editor_id string

    The HTML element ID for the field using the rich text editor.

  • $field_object object

    Object containing information about the field.

Source Code

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