I have these uneditable “tokens” inlined in my document represented as spans with special
data-* attributes and some display text, e.g.
<span data-token="token.id">Display Name</span>. In the dino example, if I sandwich text between two dinos (e.g.
<img />text<img />, then double-click “text,” only the text is selected (and replaced when I start typing). In my case, doing the same thing results in both adjacent nodes being included as part of the selection. I’ve tried all the different booleans that seem potentially relevant (
atom: true), but the behavior remains unchanged (unsurprisingly, since the dino example didn’t use any of those). Is there some other way to indicate to the browser/ProseMirror that it should treat the tag as a word boundary?