Target editor.
Text to insert.
Optional
start: null | numberPosition to start the insertion. Defaults to selectionStart
.
Optional
end: null | numberPosition to end the insertion. Defaults to start
if specified, else selectionEnd
.
Optional
newCursorStart: null | numberNew starting position for the cursor. Defaults to the end of the inserted text.
Optional
newCursorEnd: null | numberNew ending position for the cursor. Defaults to newCursorStart
.
Generated using TypeDoc
Inserts text into the editor (unless it's read-only) while keeping undo/redo history. Focuses the
textarea
if it isn't already.