@witchcraft/editor
    Preparing search index...
    • A more intuitive nodesBetween wrapper. Goes only through the nodes inside or touching the selection.

      Does not go through wrapping parents (except the first by default) that start/end before/after the given positions like nodesBetween.

      This can be changed by using the shift option, or fromShift and toShift.

      For example, if the cursor is in the middle of some text, using {shift: 0}, you would only get the text node.

      • Te|xt

      To get whatever it's parent item is, we need {shift: -1} (the default, since this is the most common use case).

      Parameters

      • doc: Node
      • __namedParameters: Pick<Selection, "$from" | "$to">
      • filter: NodesBetweenFilter
      • __namedParameters: { fromShift?: number; shift?: number; toShift?: number } = {}

      Returns void