@umbraco-cms/backoffice
    Preparing search index...

    Function findParentNodeClosestToPos

    • Finds the closest parent node to a resolved position that matches a predicate.

      Parameters

      • $pos: ResolvedPos

        The resolved position to search from

      • predicate: Predicate

        The predicate to match

      Returns undefined | { depth: number; node: Node; pos: number; start: number }

      The closest parent node to the resolved position that matches the predicate