Hello, I’m quite new and I’m making ProseMirror plugins.
When the plug-in is initialized, I want to change the initial value of the document and inital value will be fetched from server.
After some research I found that many people used the view.updateState function to do same thing. But I want to do it within the Plugin.state.init function. Is there a good way?
I don’t think you can change editorState from plugin.state.init since you only have access to editorState in that function, and can’t directly mutate that.