R
fn

blockById

tested

A block by id, or `null`.

Signature

ts
export function blockById(doc: EditorDocument, id: string): Node | null{ ... }

Parameters

ParameterTypeDescription
docEditorDocument
idstring

Returns

Node | null