Skip to content

Repeater with editor don't save text. #4011

@TarasiukDima

Description

@TarasiukDima

Version WP: 6.6.1
Version Redux Framework: 4.4.18

If I write text in the visual editor and click save, after the page is reloaded, the text appears old (before saving).
After save in the ajax response, I get answer with 200 status code and unchanged text.
If I click on the text tab and then write the text, the ajax response contains a new text.

Example field.

 array(
        'id'          => 'pref_questions',
        'type'        => 'repeater',
        'title'       => esc_html__('Questions', 'theme_name'),
        'limit'       => 20,
        'full_width'  => true,
        'item_name'   => '',
        'sortable'    => true,
        'collapsible' => false,
        'fields'      => array(
          array(
            'id'       => 'pref_questions_title',
            'type'     => 'textarea',
            'rows'     => 2,
            'title'    => esc_html__('Question', 'theme_name'),
          ),
          array(
            'id'       => 'pref_questions_answer',
            'type'     => 'editor',
            'title'    => esc_html__('Answer', 'theme_name'),
            'args'   => array(
              'textarea_rows' => 12,
              'teeny'         => true,
              'wpautop'       => true,
              'media_buttons' => false,
            )
          ),
        ),
      ),
      ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions