Function: ReplaceText()

July 21, 2026 ยท View on GitHub

API


Function: ReplaceText()

ReplaceText(editor, text, range?): void

Defined in: commands.ts:52

Replace text in the selection or specified range.

Parameters

editor

Editor

text

string

range?

Range = ...

Returns

void

Contents

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