Construct a CodeMirror editor.
blur events for the editor.
focus events for the editor.
Handles a cursor activity event.
Handles document changes.
Handles a mime type change.
Convert an editor position to a code mirror position.
Convert a code mirror position to an editor position.
Converts a code mirror selection to an editor selection.
A signal emitted when either the top or bottom edge is requested.
The DOM node that hosts the editor.
The widget of a character in the editor in pixels.
Get the codemirror doc wrapped by the widget.
Get the codemirror editor wrapped by the editor.
Tests whether the editor is disposed.
Get the number of lines in the editor.
The height of a line in the editor in pixels.
Returns a model for this editor.
The uuid of this editor;
Explicitly blur the editor.
Clear the undo history.
Optionalmode: "window" | "local" | "page"
Dispose of the resources held by the widget.
Execute a codemirror command on the editor.
The name of the command to execute.
Brings browser focus to this editor text.
Get the window coordinates given a cursor position.
Returns the primary position of the cursor, never
Returns the content for the given line number.
Find an offset for the given position.
Get a config option for the editor.
Find a position for the given offset.
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
Gets the selections for all the cursors, never
null or empty.
Get the token at a given editor position.
Get the token a the cursor position.
Get a list of tokens for the current editor text content.
Test whether the editor has keyboard focus.
Whether the option exists or not.
Inject an extension into the editor
CodeMirror 6 extension
Insert a new indented line at the current cursor position.
Handle keydown events from the editor.
Redo one undone edit.
Replaces the current selection with the given text.
Behaviour for multiple selections is undefined.
The text to be inserted.
Reveal the given position in the editor.
Reveal the given selection in the editor.
Set the primary position of the cursor.
This will remove any secondary cursors.
Set a config option for the editor.
Set config options for the editor.
This method is preferred when setting several options. The options are set within an operation, which only performs the costly update at the end, and not after every option is set.
Set the primary selection. This will remove any secondary cursors.
Sets the selections for all the cursors, should not be empty. Cursors will be removed or added, as necessary. Passing an empty array resets a cursor position to the start of a document.
Undo one edit (if any undo events are stored).
Generated using TypeDoc