#1398 ✓resolved
dleffler

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

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket

Pages