Hello Ryan, I would like to know how I can create a read-only CKEditor to preview the content inside a CKEditor, similar to the one shown in this demo https://wontlost.com/demo/ckeditor/.
How do I configure the builder to have a similar result?
Thanks
Actually, the preview is another ckeditor addon in BALLOON mode.
VaadinCKEditor preview = new VaadinCKEditorBuilder().with(builder -> { builder.editorData = editor.getValue(); // editor is your source ckeditor instance. builder.editorType = EditorType.BALLOON; builder.config = new Config(); builder.readOnly = true; }).createVaadinCKEditor(); editor.addValueChangeListener(e->preview.setValue(editor.getValue())); //listen on content changes