The widget of a character in the editor in pixels.
A signal emitted when either the top or bottom edge is requested.
The DOM node that hosts the editor.
Get the number of lines in the editor.
The height of a line in the editor in pixels.
The model used by the editor.
The default selection style for the editor.
The uuid of this selection owner.
Add a keydown handler to the editor.
A keydown handler.
A disposable that can be used to remove the handler.
Explicitly blur the editor.
Clear the undo history.
Dispose of the resources held by the object.
If the object's dispose
method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Brings browser focus to this editor text.
Get the window coordinates given a cursor position.
The desired position.
The coordinates of the position.
Returns the primary position of the cursor, never null
.
Returns the content for the given line number.
The line of interest.
The value of the line.
Lines are 0-based, and accessing a line out of range returns
undefined
.
Find an offset for the given position.
The position of interest.
The offset at the position, clamped to the extent of the editor contents.
Get a config option for the editor.
Find a position for the given offset.
The offset of interest.
The position at the offset, clamped to the extent of the editor contents.
Get the cursor position given window coordinates.
The desired coordinate.
The position of the coordinates, or null if not contained in the editor.
Returns the primary selection, never null
.
Gets the selections for all the cursors, never null
or empty.
Gets the list of tokens for the editor model.
Test whether the editor has keyboard focus.
Inserts a new line at the cursor position and indents it.
Redo one undone edit.
Replaces selection with the given text.
Resize the editor to fit its host node.
Reveals the given position in the editor.
The desired position to reveal.
Reveals the given selection in the editor.
Set the primary position of the cursor.
Set a config option for the editor.
Set config options for the editor.
Set the primary selection.
Set the size of the editor.
Undo one edit (if any undo events are stored).
Generated using TypeDoc
A widget that provides a code editor.