deleteTextInRange

Type: Function

Delete a piece of the given textNode

Refer to primitives for more information on how to include this primitive.

Arguments

  1. textNode

    (Required)

    Type: Node

    The textNode to partially delete

  2. rangeToDelete

    (Required)

    Range to delete from the textnode. Should either have its startContainer, its endContainer or both being the textNode

  3. blueprint

    (Required)

    Type: Blueprint

    The blueprint to use for the delete

  4. format

    (Required)

    Type: Format

    The format containing the validator, synthesizer and the metadata to use

Returns

Type: Boolean

The success of the delete