unsafe Split Node
Type: Function
Splits the given element at the given offset without validation.
Should not be used directly. The "unsafe" part in this function only refers to the fact that the function does not do any validation, in contrast to primitives that always guarantee a schema-valid result on an unmodified blueprint.
The position on which the split is started remains in the first half.
Arguments
node
(Required)
Type: Node
The node to split
offset
(Required)
Type: Number
The offset at which to split the node
blueprint
(Required)
Type: Blueprint
The blueprint in which to perform the operation
move
Split Position (Required)
Type: Boolean
Whether to move the position from which the split was started into the second half
Default value
Returns
Type: Node
The second half of the split node. The given node becomes the first half.