Skip to content

Cm5Editor.extendSelection method

Cm5Editor › 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:

ParameterTypeDescription
fromPositionThe position to extend from.
to?Position | undefinedOptional end of region to select.
options?Cm5SelectionOptions | undefinedOptional selection options.

Returns: void