Bug: texteditor/textarea form control converts newlines incorrectly
Reported by dleffler | November 10th, 2016 @ 01:55 PM | in 2.4.1 (closed)
If you are using a texteditorcontrol to display a text area for multiline text input, it may seem to work as it converts text newlines into html breaks, HOWEVER, if you try to edit the form/record, the 'breaks' are displayed within the text control since they were added into the saved data. The good thing is that you don't have to re-edit the entry, but it is less than intuitive.
The desired effect would be that the entered/saved data contains newlines, however, the displayed data contains html breaks. In essence the form control object should be using a custom templateFormat() method instead of parseData() method (but it's not that simple)
Comments and changes to this ticket
-
expNinja November 10th, 2016 @ 09:55 PM
- State changed from new to resolved
(from [336d9f853a0714a942be5243b4088d389d55687b]) Fix several form control anomalies; texteditorcontrol (textarea) newline conversion issues; remove warning from anti-spam code; standardize form control parseData() method across all form controls [#1398 state:resolved] https://github.com/exponentcms/exponent-cms/commit/336d9f853a0714a9...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Bug Tracker for Exponent CMS