edit
abstract fun edit(callback: (editBuilder: TextEditorEdit) -> Unit, options: TextEditor.EditOptions = definedExternally): PromiseLike<JsBoolean>(source)
Perform an edit on the document associated with this text editor.
The given callback-function is invoked with an edit-builder which must be used to make edits. Note that the edit-builder is only valid while the callback executes.
Parameters
callback
A function which can create edits using an edit-builder.
options
The undo/redo behavior around this edit. By default, undo stops will be created before and after this edit.