-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix for https://github.com/kevinchappell/formBuilder/issues/699 #1487
Conversation
…ingle input[type=text] value. Formatting of TextAreas is now preserved.
Thank you @Shinbar for your PR. I'll will review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Shinbar thanks for the PR. I've added some comments and suggested changes.
Also, if possible can you please adjust your commit message to include the prefix 'fix: ' so it becomes fix: For TextArea control have made the value input a textarea and not a single input[type=text] value. Formatting of TextAreas is now preserved. |
Co-authored-by: James Lucas <james@lucas.net.au>
Co-authored-by: James Lucas <james@lucas.net.au>
Co-authored-by: James Lucas <james@lucas.net.au>
…t a single input[type=text] value. Formatting of TextAreas is now preserved. Update src/js/form-builder.js Co-authored-by: James Lucas <james@lucas.net.au>
…t a single input[type=text] value. Formatting of TextAreas is now preserved.
LGTM @kevinchappell any issues with this change for textareas? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good. thank you @Shinbar
🎉 This PR is included in version 3.17.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
After recently using this great project, I found that TextArea content are not being preserved, as they are being converted into a single value input of input[type=text]. This removes formatting from the TextArea such as line feeds etc.
I have amended the code so that TextArea are provided a proper TextArea control, and that the innerHTML data is preserved.
I believe this solved the following issue.
Fixes: #699