Inspect positions in a ProseMirror document