I always get tripped by resolved positions and wanted a second pair of eyes in validating my understanding.
A<NODE>B----{}-----C</NODE>D
Above is an XML simplification of a prosemirror node, where {}
is the cursor and A,B,C,D correspond to flat numerical token positions.
Is the following interpretation correct of the resolve position methods, assuming depth d
corresponds to NODE
:
-
start(d)
: B -
end(d)
: C -
before(d)
: A -
after(d)
: D
Help verifying correcting the above is much appreciated