I have a question about cursor placement at element boundaries in ProseMirror. When working with text like this: 0 '<strong>' 1 'a' 2 '</strong>' 3
, it seems that my cursor can only be placed at positions 0 or 2, but not at positions 1 or 3. Is this the case?
This leads to two issues for me:
- I’d like to give my editor’s users more precise control over cursor placement. In contrast to typical editors, where adding content before or after the ‘strong’ tag makes it either non-strong or strong, respectively, I want users to be able to control this behavior more explicitly.
- When selecting an entire block element (e.g., all text within a blockquote) and dragging it, an empty block element is always left behind in the original position. This seems to be because the selection’s start always begins after the block element’s tag.