@servicenow/sdk - v4.4.1
    Preparing search index...
    interface TextInsertableNode {
        insertText(
            pos: number,
            textOrWriterFunction: string | WriterFunction,
        ): this;
        removeText(): this;
        removeText(pos: number, end: number): this;
        replaceText(
            range: [number, number],
            textOrWriterFunction: string | WriterFunction,
        ): this;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Inserts text within the body of the node.

      WARNING: This will forget any previously navigated descendant nodes.

      Parameters

      • pos: number

        Position to insert at.

      • textOrWriterFunction: string | WriterFunction

        Text to insert.

      Returns this

    • Removes all the text within the node

      Returns this

    • Removes text within the body of the node.

      WARNING: This will forget any previously navigated descendant nodes.

      Parameters

      • pos: number

        Start position to remove.

      • end: number

        End position to remove.

      Returns this

    • Replaces text within the body of the node.

      WARNING: This will forget any previously navigated descendant nodes.

      Parameters

      • range: [number, number]

        Start and end position of the text to replace.

      • textOrWriterFunction: string | WriterFunction

        Text to replace the range with.

      Returns this