You can maybe make a plugin with the view defined, so that you can reconfigure the editor state with a new schema whenever it should be changed.
ProseMirror Reference manual ProseMirror Reference manual ProseMirror Reference manual
You can maybe make a plugin with the view defined, so that you can reconfigure the editor state with a new schema whenever it should be changed.
ProseMirror Reference manual ProseMirror Reference manual ProseMirror Reference manual