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

    Function findParentNode

    • Finds the closest parent node to the current selection that matches a predicate.

      Parameters

      Returns (
          selection: Selection,
      ) =>
          | undefined
          | { depth: number; node: ProseMirrorNode; pos: number; start: number }

      A command that finds the closest parent node to the current selection that matches the predicate