pubpub / pubpub-editor

A stand alone, extensible WSIWYG editor based on ProseMirror
GNU General Public License v2.0
101 stars 9 forks source link

fix: grab node schema defaultOptions from right place #18

Closed idreyn closed 5 years ago

idreyn commented 5 years ago

This should fix an issue that has been breaking Pandoc export of pubs with discussion embeds. We'll need to update this package and do a release to actually fix this in PubPub.

The issue was that we were trying to pluck defaultOptions from a ProseMirror schema node, but that's not it lives; instead we need to get it off the node's spec instead. Don't worry, I find it confusing too!

isTravis commented 5 years ago

:expressionless: