Bind text to RichTextEditor.

Hi guys. I am trying to bind a text column from the database to a richTextEditor. Is there any example I can follow? Because I get this kind of error in the UI for everything I have tried " Invalid value set to rich-text-editor: SyntaxError: Unexpected token ‘<’, " "… is not valid JSON " .

Vaadin 24 supports adding html via set value directly. Older versions require workarounds like field.asHtml()

asHtml() helped in my case. thank you!