Skip to content

getNextBlock

const getNextBlock: EditorSelector<{ node: PortableTextBlock; path: BlockPath; } | undefined>

Defined in: selector.get-next-block.ts:17

Returns the block after the selection’s end block within the same container scope, if any.

Siblings are resolved within the enclosing container (or the document root if the selection is at root level). Never crosses container boundaries.