Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Bug: texteditor/textarea form control converts newlines incorrectly

#1398

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)

Reported by dleffler · November 10th, 2016 @ 01:55 PM

State: resolved
Milestone: 2.4.1
Assigned to: dleffler dleffler

Activity

  1. expNinja
    expNinja
    • 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...

    November 10th, 2016 @ 09:55 PM

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.