bookmark_bordergform_rich_text_editor_options

Description

Filters the rich text editor options.

Usage

add_filter( 'gform_rich_text_editor_options', 'my_function', 10, 4 );

Parameters

  • $editor_settings array
    Array of buttons to include within the TinyMCE editor inside Gravity Forms
    Defaults to the following:

      array(
          'textarea_name' => 'input_' . $id,
          'wpautop'       => true,
          'editor_class'  => $class,
          'textarea_rows' => 10,
          'tabindex'      => $tabindex,
          'media_buttons' => false,
          'quicktags'     => false,
      );
      

  • $field_object object
    The full field object returned.

  • $form array
    The form that the filter is being run on.

  • $entry array
    The entry, if available.

Examples

function my_function( $editor_settings, $field_object, $form, $entry ) {
    $editor_settings['editor_height'] = 400;
    return $editor_settings;
}
add_filter( 'gform_rich_text_editor_options', 'my_function', 10, 4 );

Source Code

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