I’ve read through the guide and have been stuck on aiming to do the following:
extracting the HTML of the editor and
replacing all of the HTML of the editor
I’m looking to make a WYISWYG editor to edit HTML files locally with some minimal markup support. What I’d tried so far has been:
Extracting the content using DOMSerializer.fromSchema(state.schema).serializeFragment(state.doc.content) where state is editorView.state from the held instance of the editor.
??? regarding replacing the whole of the HTML text.