RangeError: Content hole not allowed in a mark or leaf node spec

Whenever I copy a text from ProseMirror, I get this error. Though, the text does get copied, I have no idea what is causing this. Any suggestions on how to get rid of this?

Thanks

One of your schema’s toDOM methods is returning invalid content – i.e. it’s returning an array with a zero in it, where it shouldn’t because it’s a mark or a content-less node.

1 Like