insertText

Type: Function

Insert a piece of text at the specified position

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

Arguments

  1. position

    (Required)

    The position to start inserting in

  2. blueprint

    (Required)

    Type: Blueprint

    The blueprint to consider dom-relations in

  3. text

    (Required)

    Type: String

    The text to insert

  4. format

    (Required)

    Type: Format

    The format to use

  5. positionAfterText

    (Optional)

    Set to the position directly after the inserted text, always in the textNode

  6. ignoreReadOnly

    (Required)

    Type: Boolean

    For internal use only

    Default value

  7. positionBeforeText

    (Optional)

    For internal use only. Set to the position directly after the inserted text, always in the textNode

Returns

Type: Boolean

Whether text could be inserted at the given position