but that doesn't work for me using up-to-date ProseMirror dependencies, I instead had to use baseSchema.spec.nodes and baseSchema.spec.marks. I tried to hunt down the text to suggest the change myself, but closest match I could find was in prosemirror-schema-list's README which which is actually correct, strangely enough.
The reference manual page for
prosemirror-schema-list
gives the following instructions for how to useaddListNodes
to merge schemas:but that doesn't work for me using up-to-date ProseMirror dependencies, I instead had to use
baseSchema.spec.nodes
andbaseSchema.spec.marks
. I tried to hunt down the text to suggest the change myself, but closest match I could find was inprosemirror-schema-list
's README which which is actually correct, strangely enough.