Trevixal API
    Preparing search index...

    Class WrapNodesStep

    Wrap the children [from, to) of the node at parentPath in a new node of type wrapperType, placed at index from.

    Hierarchy (View Summary)

    Index
    • Parameters

      • parentPath: Path
      • from: number
      • to: number
      • wrapperType: string
      • OptionalwrapperAttrs: Readonly<Record<string, unknown>>

      Returns WrapNodesStep

    from: number
    parentPath: Path
    to: number
    wrapperAttrs?: Readonly<Record<string, unknown>>
    wrapperType: string
    • Produce the step that undoes this one, given the document it applied to.

      Returns Step

    • Returns Record<string, unknown>