This page is available as Markdown at /api/traversal/functions/isblock.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.
isBlock
isBlock(
snapshot,path):boolean
Defined in: is-block.ts:19
Determine if a node at the given path is a block.
A node is a block if its parent is not a text block. Top-level nodes (direct children of the editor) are always blocks. Children of text blocks (spans and inline objects) are not blocks. Children of containers are blocks within that container.
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”TraversalSnapshot
Path
Returns
Section titled “Returns”boolean