replace-node
Type: Operation
Removes a node and its descendants from the document, inserting a new structure in its place.
Imported operation data
context
Node Id (Required)
Type: NodeId
The node to replace
replacement
Node Structure (Required)
Type: StencilJsonML
A stencil describing the structure to be inserted in place of the removed node. This stencil may mention the selection.
[model]
(Required)
Type: Object
Model to be bound to the stencil after insertion.
[override
Range] (Required)
Type: OverrideRange
The range to set the selection in as defined by the stencil instead of the selectionRange