Skip to content

Doc.extendSelections method

Doc › extendSelections

Unofficial

Like extendSelection, but acts on all selections at once.

Signature:

extendSelections(heads: Position[], options?: Cm5SelectionOptions | undefined): void

Parameters:

ParameterTypeDescription
headsPosition[]The new head positions.
options?Cm5SelectionOptions | undefinedOptional selection options.

Returns: void