Issue Bug Closed

#94516<textarea> is losing empty lines on the beginning

Albrecht Köhnlein 07/09/21, 09:27 updated 12/02/25, 14:33

Description

I had a case where I had to enter some text starting with multiple empty lines into FormEngine’s textarea element.

When saving and re-opening the first empty line was missing in the editor. I investigated a little bit and found out, that the empty lines still exist when the data is saved to database and still exist in the rendered HTML when generating the form. But there seems to be any JavaScript which removes the first line.

This problem can be reproduced, if you enter some empty lines + a line of text in field tt_content.rowDescription or any other textarea.

When saving and reopening the form, you will see, there is one less empty line in the editor.

Reviews 2