Skip to content

Doc.extendSelection method

Doc › extendSelection

Unofficial

Moves the head of the selection while leaving the anchor in place.

Signature:

extendSelection(from: Position, to?: Position | undefined, options?: Cm5SelectionOptions | undefined): void

Parameters:

Parameter Type Description
from Position The position to extend from.
to? Position | undefined Optional end of region to select.
options? Cm5SelectionOptions | undefined Optional selection options.

Returns: void