@codemirror/view
Advanced tools
Changelog
6.35.3 (2024-12-09)
Fix an issue where mark decorations that got merged or split weren't properly redrawn.
Avoid spurious focus events by not updating the DOM selection when the editor is unfocused but focusable.
Disable writingsuggestions
for the editable element, to opt out of Safari's new intelligence completions (which mess up in the editor).
Changelog
6.35.2 (2024-12-07)
Fix an issue on Chrome where typing at the end of the document would insert a character after the cursor.
Changelog
6.35.1 (2024-12-06)
Work around another crash caused by incorrect composition positions reported by EditContext
.
Stop disabling custom cursors on Safari version 11.4 and up, which support caret-color
.
Fix an issue where a tooltip with wrapped content could, in some circumstances, fail to find a stable position due to a cyclic dependency between its width and its position.
Changelog
6.35.0 (2024-11-21)
Tooltips can now use the clip
option to control whether they are hidden when outside the visible editor content.
Changelog
6.34.3 (2024-11-15)
Make sure positions covered by a gutter or a panel aren't treated as visible for the purpose of displaying tooltips.
Properly include the tooltip arrow height when checking whether a tooltip fits in its preferred above/below position.
Fix an issue with compositions on Chrome inserting their content in the wrong position when another document change came in during composition.
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.