function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lewis ReedLewis Reed 

Rich Text Area with Line Breaks (input is multiple paragraphs)

Hi,

Im having trouble displaying an output like this:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius varius ipsum eget aliquet. Phasellus maximus purus ut lectus pharetra, id iaculis ligula aliquam. Aliquam eget erat dolor. Fusce maximus consectetur velit, in fringilla est. Duis elementum sollicitudin nunc ac malesuada. Cras et eros blandit, congue justo eget, ornare nisi. Nullam quis orci ut quam porttitor sodales.

Nunc eget velit non tellus blandit vulputate. Phasellus porta felis a magna accumsan laoreet auctor at arcu. Mauris mattis orci leo, a elementum nunc sodales vel. Mauris feugiat, odio ac elementum ultrices, quam orci finibus urna, nec lobortis sem lorem id arcu. Morbi nunc tellus, elementum ac erat non, aliquet porttitor eros. 

It is infact, actually displaying them like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius varius ipsum eget aliquet. Phasellus maximus purus ut lectus pharetra, id iaculis ligula aliquam. Aliquam eget erat dolor. Fusce maximus consectetur velit, in fringilla est. Duis elementum sollicitudin nunc ac malesuada. Cras et eros blandit, congue justo eget, ornare nisi. Nullam quis orci ut quam porttitor sodales.
Nunc eget velit non tellus blandit vulputate. Phasellus porta felis a magna accumsan laoreet auctor at arcu. Mauris mattis orci leo, a elementum nunc sodales vel. Mauris feugiat, odio ac elementum ultrices, quam orci finibus urna, nec lobortis sem lorem id arcu. Morbi nunc tellus, elementum ac erat non, aliquet porttitor eros. 

I need to be able to display the formatting and line breaks that the user has added. 

I do not know when the line breaks will be its just a large text field that the user can input comments in, and they may need to use the enter key to generate a new line.


Can anybody offer any assitance?

Thankyou in advance,

Lewis Reed
Best Answer chosen by Lewis Reed
The Ajay GuptaThe Ajay Gupta
I have tried & replicate the issue by pressing Keybord Enter Key, I am able to add line break, Please try to use enter key after end of  paragraph. Please see the below screenshot:
User-added image