Construct a CodeMirror editor.
Private _configuratorPrivate _editorPrivate _isPrivate _languagePrivate _languagesPrivate _modelPrivate _uuidReadonly edgeA signal emitted when either the top or bottom edge is requested.
Readonly hostThe 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;
The uuid of this selection owner.
Private _evtHandle blur events for the editor.
Private _evtHandle focus events for the editor.
Private _onPrivate _onPrivate _onPrivate _toConvert an editor position to a code mirror position.
Private _toPrivate _toConverts a code mirror selection to an editor selection.
Get the window coordinates given a cursor position.
Find an offset for the given position.
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.
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.
Alpha Experimental Inject an extension into the editor
CodeMirror 6 extension
Protected onProtected onHandle keydown events from the editor.
Reveal the given position in the editor.
Reveal the given selection in the editor.
Optional bias?: numberOptional origin?: stringOptional scroll?: booleanoptions bias and origin are not used
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.
CodeMirror editor.