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"));

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: