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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
doc | DocumentNode |