findNodesContainedInRange

Type: Function

Find all nodes matching the given nodespec, optionally also including matching descendants, instead of only top level matches.

Refer to domRangeQuery for more information on how to import and use this function.

Arguments

  1. range

    (Required)

  2. spec

    (Required)

    Type: NodeSpec

    Default value

  3. includeMatchingDescendants

    (Required)

    Type: Boolean

    Default value

Returns

Type: Array<FontoNode>