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, options?: Cm5SelectionOptions): void

Parameters:

ParameterTypeDescription
fromPositionThe position to extend from.
to?PositionOptional end of region to select.
options?Cm5SelectionOptionsOptional selection options.

Returns: void