Set RichTextArea value with properly formatted content from documents

RichTextArea create table.

Hello, I’m not sure I get the full capability of the RichTextArea and its limitation. For now is it possible to create a table or boxes in the text editor in order to create a formatted documents?

I’m trying to get a .pdf content and set it as the text editor value but currently it only returns the whole content in one long paragraph.

Is it possible to get it properly formatted with tables? If not, is there any workaround?

Thank you.

Hello,

Probably, RichTextArea performs HTML sanitization by default and some tags or attributes are not presented in the final HTML value.
You can disable it by:

<richTextArea id="richTextArea"
              htmlSanitizerEnabled="false"/>

Or override HtmlSanitizer bean and and add missing tags or attributes, see this thread:

1 Like