@codemirror/view
Advanced tools
Changelog
6.34.2 (2024-11-05)
Fix the default cursor color for dark themes, which was way too dark.
Changelog
6.34.1 (2024-09-27)
Avoid a stack overflow that could happen when updating a line with a lot of text tokens.
Improve the way enormously long (non-wrapped) lines are displayed by making sure they stay shorter than the maximal pixel size the browser's CSS engine can handle.
Changelog
6.34.0 (2024-09-25)
Fix an issue where the dots past the wrapping point were displayed incorrectly when using highlightWhitespace
with a wrapped sequence of spaces.
Improve performance of documents displaying lots of highlighted spaces by using a CSS background instead of pseudo-element.
placeholder
now allows a function that constructs the placedholder DOM to be passed in, and uses cloneNode
when a raw element is passed in, to prevent adding the same element to multiple editors.
Changelog
6.33.0 (2024-08-24)
Make it easier to move the pointer over a hover tooltip with an arrow by not closing the tooltip when the pointer is moving over the gap for the arrow.
The new EditorView.clipboardInputFilter
and clipboardOutputFilter
facets allow you to register filter functions that change text taken from or sent to the clipboard.
Changelog
6.32.0 (2024-08-12)
Fix a bug where the editor could draw way too big a viewport when not managing its own scrollbar.
The new gutterWidgetClass
facet makes it possible to add a class to gutter elements next to widgets.
Changelog
6.31.0 (2024-08-11)
Avoid the editor's geometry measurements becoming incorrect when fonts finish loading by scheduling a measure on document.fonts.ready
.
Avoid an issue where Chrome would incorrectly scroll the window when deleting lines in the editor.
Fix an issue where in some layouts editor content would be drawn on top of panel elements.
Fix an issue where coordsAtPos
would return null when querying a position in a block widget.
The new lineNumberWidgetMarker
facet makes it possible to insert markers into the line number gutter for widgets.
Changelog
6.30.0 (2024-08-05)
Make spell check corrections work again on EditContext
-enabled Chrome versions.
The value returned by hoverTooltip
now has an active
property providing the state field used to store the open tooltips.
Changelog
6.29.1 (2024-07-29)
Fix a crash on old Safari browsers that don't support MediaQueryList.addEventListener
.
Fix an issue where EditorView.viewportLineBlocks
(and thus other things like the gutter) might be out of date after some kinds of decoration changes.
Changelog
6.29.0 (2024-07-25)
Fix an issue that caused typing into an editor marked read-only to cause document changes when using EditContext
.
Associate a cursor created by clicking above the end of the text on a wrap point with the line before it.
The package now exports the type of hover tooltip sources as HoverTooltipSource
.