Trevixal API
    Preparing search index...

    Class ReplaceNodesStep

    Replace the children [from, to) of the element node at parentPath with a fragment. Covers node insertion (from === to) and removal (empty fragment).

    Hierarchy (View Summary)

    • Step
      • ReplaceNodesStep
    Index
    from: number
    insert: Fragment
    parentPath: Path
    to: number
    • Produce the step that undoes this one, given the document it applied to.

      Parameters

      Returns Step

    • Returns Record<string, unknown>