Skip to content

Vizel API / core/src / VizelMultiBlockSelectionState

Interface: VizelMultiBlockSelectionState

Defined in: packages/core/src/extensions/multi-block-selection.ts:43

Public plugin state for the multi-block range selection extension.

from and to mirror the document positions of the first and last block in the range. blockPositions lists the start position of every top-level block contained in the range, in document order. Returns null when the current selection covers fewer than two blocks at the top level — single-block selections rely on Tiptap's built-in behavior.

Properties

blockPositions

ts
readonly blockPositions: readonly number[];

Defined in: packages/core/src/extensions/multi-block-selection.ts:46


from

ts
readonly from: number;

Defined in: packages/core/src/extensions/multi-block-selection.ts:44


to

ts
readonly to: number;

Defined in: packages/core/src/extensions/multi-block-selection.ts:45

Released under the MIT License.