RichTextEditor setValue not Working

I have this code:

VerticalLayout vl = new VerticalLayout();
RichTextEditor editor = new RichTextEditor("old Value");
Button btn = new Button("change",e ->  editor.setValue("new Value"));
vl.add(editor,btn);

When I add my editor he comes with the null value even though I have declared an initial , and when I click the button the value dont change. anyone know why? tks

The setValue method expects Quill format, like stated in its JavaDoc. In Vaadin 14.1 (out soon), there’s also a method for setting HTML value: https://github.com/vaadin/vaadin-rich-text-editor-flow/blob/master/vaadin-rich-text-editor-flow/src/main/java/com/vaadin/flow/component/richtexteditor/RichTextEditor.java#L201