ReadonlycharThe widget of a character in the editor in pixels.
ReadonlyedgeA signal emitted when either the top or bottom edge is requested.
ReadonlyhostThe DOM node that hosts the editor.
ReadonlyisReadonlylineGet the number of lines in the editor.
ReadonlylineThe height of a line in the editor in pixels.
ReadonlymodelThe model used by the editor.
The uuid of this selection owner.
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.
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.
Find an offset for the given position.
The position of interest.
The offset at the position, clamped to the extent of the editor contents.
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.
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.
OptionalreplaceReveals the given position in the editor.
The desired position to reveal.
Set the primary position of the cursor.
The new primary position.
Optionaloptions: { scroll?: boolean }
A widget that provides a code editor.
As of JupyterLab 4.0.0, it is not possible to provide an editor that is different of CodeMirror 6.