Rich Text widget: Line breaks not shown in editor

1
I am using the Rich Text widget (https://appstore.home.mendix.com/link/app/74889/) and facing an issue with line breaks while editing the text. When an item containing some text with line breaks is displayed on the ReadOnly page with Editable = Never, the line breaks are shown properly. On the other hand while editing on the NewEdit page, the editor does not show the line breaks, but it does create the <br> tags in the background (see attached screenshots). Am I missing some configuration?  
asked
1 answers
1

This happens usually when you input the text in a textarea widget for example and then use the same attribute to be displayed in a rich text editor. 

 

There are two solutions:

1) Replace the textarea/textbox with a rich text, then it generates the HTML elements correctly.

2) When using the rich text editor on a page, then in the microflow from which the page is shown create a string variable with the contents replaceAll($Object/attribute, '

', </br>. NB! It is very important that the replaceAll second parameter is ' + create a line break using Enter + '. 

 

Rich text editor and text area handle line breaks differently.

answered