Skip to content

form-builder.js clears inputted data for tinymce fields when editing the field's options #1564

@TrueSpins

Description

@TrueSpins

Description:

When using the Form Builder it's possible to convert a textarea to a TinyMCE rich text area. As with all fields, when building a form you can insert initial values into the field, which are then visible to a user when the form is subsequently rendered.

However, there is a bug when using a TinyMCE field, that results in inputted data being cleared when toggling between edit mode.

Environment Details:

  • formBuilder Version: Latest version
  • Browser: Edge, Chrome
  • OS: Windows

Expected Behavior

Inserted text in a TinyMCE field should be preserved when opening and closing the field's option menu.

Actual Behavior

Inserted text is lost.

Steps to Reproduce

You can reproduce this as follows:

  • Insert a text area onto a blank form
  • Convert that text area to a TinyMCE field using the type option
  • Insert some text into the field
  • Click on the edit icon for that field
  • Click on the close button for the edit options
  • The originally inserted text will have vanished

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reproductionIssue needs full code example to reproduce

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions