Skip to content

Vizel API / core/src / getVizelMultiBlockSelectionState

Function: getVizelMultiBlockSelectionState()

ts
function getVizelMultiBlockSelectionState(state): 
  | VizelMultiBlockSelectionState
  | null;

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

Read the current multi-block range from an editor state. Returns null when the selection spans zero or one top-level block.

Parameters

ParameterType
stateEditorState

Returns

| VizelMultiBlockSelectionState | null

Released under the MIT License.