Doc › addSelection
Unofficial
Adds a new selection to the existing set of selections.
Signature:
addSelection(anchor: Position, head?: Position): void
Parameters:
| Parameter | Type | Description |
|---|
| anchor | Position | The anchor position. |
| head? | Position | The optional head position. |
Returns: void