insert-text

Type: Operation

Insert text

Insert text, if the current selection contained nodes, they are first removed.

This operation is bound to all keypresses in the content view. It can also be used for inserting a constant string of text at the current selection.

Imported operation data

  1. text

    (Required)

    Type: String

    The text which should be inserted. Not limited to a single character.

  2. [overrideRange]

    (Required)

    The range to operate on instead of the selectionRange