unsafeSplitNode

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

  1. node

    (Required)

    Type: Node

    The node to split

  2. offset

    (Required)

    Type: Number

    The offset at which to split the node

  3. blueprint

    (Required)

    Type: Blueprint

    The blueprint in which to perform the operation

  4. moveSplitPosition

    (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.