Hierarchy

  • BasicEditorDriver

Implements

Constructors

Properties

Methods

  • Get the last N characters from the current "text block".

    A textarea-based driver would just return the last N characters, but more advanced implementations might restrict to the current block.

    This is useful for monitoring recent user input to trigger autocomplete.

    Parameters

    • n: number

    Returns string

  • Insert content into the editor between the given positions.

    If the start and end positions are different, any text between them will be overwritten.

    Parameters

    • selectionStart: number
    • selectionEnd: number
    • text: string

    Returns void

Generated using TypeDoc v0.23.24