findChildren
@blockslides/core / findChildren
Function: findChildren()
findChildren(
node,predicate):NodeWithPos[]
Defined in: blockslides/packages/core/src/helpers/findChildren.ts:11
Find children inside a Prosemirror node that match a predicate.
Parameters
node
Node
The Prosemirror node to search in
predicate
The predicate to match
Returns
An array of nodes with their positions