Removes a node and its descendants from the document, inserting a new structure in its place.
Imported operation data
The node to replace
A stencil describing the structure to be inserted in place of the removed node. This stencil may mention the selection.
Model to be bound to the stencil after insertion.
The range to set the selection in as defined by the stencil instead of the selectionRange