Skip to content

Cm5Editor.addSelection method

Cm5Editor › addSelection

Unofficial

Adds a new selection to the existing set of selections.

Signature:

addSelection(anchor: Position, head?: Position | undefined): void

Parameters:

Parameter Type Description
anchor Position The anchor position.
head? Position | undefined The optional head position.

Returns: void