Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TrueSpins opened this issue Jun 4, 2024 · 0 comments
Labels
needs-reproduction Issue needs full code example to reproduce

Comments

@TrueSpins
Copy link

TrueSpins commented Jun 4, 2024

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
@lucasnetau lucasnetau added the needs-reproduction Issue needs full code example to reproduce label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-reproduction Issue needs full code example to reproduce
Projects
None yet
Development

No branches or pull requests

2 participants