bookmark_bordergform_rich_text_editor_options_FORM_FIELD

Description

Filters the rich text editor options for a specific field, within a specific form.

Usage

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

Parameters

  • $editor_settings array
    Array of settings to be used within the editor.
    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 ) {
    //Do something here
    return $editor_settings;
}
add_filter( 'gform_rich_text_editor_options_3_6', 'my_function', 10, 4 );

Source Code

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