R
fn

previousBlock

tested

The block before `id` in document order, or `null`.

Signature

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

Parameters

ParameterTypeDescription
docEditorDocument
idstring

Returns

Node | null