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

1 Like

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.

3 Likes

Hi marijin, thank you alot. You saved my day :pray: :pray: :pray:

1 Like

:+1: :+1: :+1: solved my problem