R
fn

selectionBlockId

tested

Block id the selection's focus is in (or the first node-selected block).

Signature

ts
export function selectionBlockId(state: EditorState): string | undefined{ ... }

Parameters

ParameterTypeDescription
stateEditorState

Returns

string | undefined