Skip to content

@codemirror__view/internals

InterfaceDescription
AddOverlayOptionsOptions for adding a search overlay to the editor.
BookmarkA bookmark marking a specific position in the editor document that tracks changes.
BracketRepresents a bracket character found at a specific position in the editor.
CodeMirrorAdapterExExtended CodeMirror adapter providing CM5-compatible API over CM6.
CodeMirrorAdapterExCommandsBuilt-in editor commands available through the CodeMirror adapter.
CodeMirrorEditorCM5-compatible editor interface wrapping a CodeMirror 6 editor view.
CodeMirrorEditorModeDescribes the active editor language mode.
CodeMirrorEditorSearchCursorA cursor for iterating over search matches in the editor document.
CodeMirrorEditorSelectionRangeA selection range with anchor and head positions for CodeMirror editor.
CoordsRepresents a bounding rectangle with top, bottom, left, and right coordinates.
DecorationAttributesA record of HTML attribute names to values.
EditorRangeExAn extended editor range with nullable start and end positions.
EditorViewCoordsScreen coordinates with x and y values.
EditorViewDocumentPaddingPadding above and below the document.
EditorViewDomPositionA DOM position with a node and offset.
EditorViewRangeA range defined by from and to positions.
EditorViewScrollHandlerOptionsOptions for the scroll handler facet.
EditorViewScrollIntoViewOptionsOptions for scrolling into view.
EditorViewStateInternal view state of the editor.
EditorViewThemeOptionsOptions for creating a theme.
EditorViewThemeSpecA record of CSS selectors to style values for theme definitions.
EnclosingTagRepresents an enclosing HTML/XML tag pair with open and close ranges.
HardWrapOptionsOptions for hard-wrapping text in the editor.
LineDecorationSpecSpecification for a line decoration that styles an entire line.
LineHandleHandle referencing a specific line in the editor document.
LineHandleChangeDescribes a change applied to a line handle.
MarkDecorationSpecSpecification for a mark decoration that styles a range of text.
MatchingBracketResult of a matching bracket search.
MeasureRequestA request for a layout measurement on the editor view.
OpenDialogOptionsOptions for opening an interactive dialog in the editor (e.g., Vim command line).
OpenNotificationOptionsOptions for opening a notification in the editor.
ReplaceDecorationSpecSpecification for a replace decoration that replaces a range of text.
ScrollInfoInformation about the editor’s scroll position and dimensions.
SetBookmarkOptionsOptions for setting a bookmark in the editor.
SetSelectionOptionsOptions for setting a selection in the editor.
WidgetDecorationSpecSpecification for a widget decoration that inserts a widget at a position.