Function: InsertText()

July 13, 2026 ยท View on GitHub

API


Function: InsertText()

InsertText(editor, text, position?): void

Defined in: commands.ts:31

Insert text at the caret or specified position.

Parameters

editor

Editor

text

string

position?

number = ...

Returns

void

Contents

  1. 1Parameters
  2. 1.1editor
  3. 1.2text
  4. 1.3position?
  5. 2Returns