Skip to content

flattenBlocks

function flattenBlocks(doc): {
block: BlockNode;
path: BlockPath;
}[];

Defined in: selection.ts:66

Return all leaf-level (no children) blocks in document order, with paths.

ParameterType
docDocumentNode

{ block: BlockNode; path: BlockPath; }[]