Select part of this sentence and change its mark.
A | B |
|---|---|
One | Two |
Selection lives in editor state, independent of the browser DOM.
A caret is a collapsed RangeSelection. Anchor and focus retain direction; position mapping carries them through document edits. Tables contribute their own rectangular TableSelection.
Drag across text or select table cells, then edit and watch the tree remain stable.
Select part of this sentence and change its mark.
A | B |
|---|---|
One | Two |
A transaction can set a caret. TableSelection uses cell IDs for its two corners.