Hi, I’m trying to make this example work but having worked with prosemirror for only a week, I can’t see where I’m making a mistake, could somebody please point me in the right direction?
I’m trying to build on this example while looking at prosemirror examples on how to extend document schema (like Dinos), but the following code doesn’t work (I’m extending prosemirror-markdown schema if it matters), the error I keep getting in the console is Uncaught (in promise) RangeError: Invalid content for node doc
If the titledDoc is not the topNode, then I believe you will have to define a toDom and parseDOM method. If you are using it as a topNode, then it should be fine.