Hello
Really enjoying ProseMirror.
However, We are having issues finding our paragraph offsets.
In our schema, we have a ParagraphNode
type that can contain EntityNode
types.
When we use doc.resolve(pos).parent
it resolves to an EntityNode
.
This is great but… is there a way of finding the EntityNodes
parent (i.e: The ParagraphNode
).
We need the ParagraphNodes
start and end offset.
Apologies if this is a stupid question.
Best John