Skip to main content

findChildrenInRange

@blockslides/core


@blockslides/core / findChildrenInRange

Function: findChildrenInRange()

findChildrenInRange(node, range, predicate): NodeWithPos[]

Defined in: blockslides/packages/core/src/helpers/findChildrenInRange.ts:12

Same as findChildren but searches only within a range.

Parameters

node

Node

The Prosemirror node to search in

range

Range

The range to search in

predicate

Predicate

The predicate to match

Returns

NodeWithPos[]

An array of nodes with their positions