@codemirror/view
Advanced tools
Changelog
6.9.1 (2023-02-17)
Improve the way posAtCoords
picks the side of a widget to return by comparing the coordinates the center of the widget.
Fix an issue where transactions created for the focusChangeEffect
facet were sometimes not dispatched.
Changelog
6.9.0 (2023-02-15)
Fix an issue where inaccurate estimated vertical positions could cause the viewport to not converge in line-wrapped editors.
Don't suppress double-space to period conversion when autocorrect is enabled.
Make sure the measuring code notices when the scaling of the editor is changed, and does a full measure in that case.
The new EditorView.focusChangeEffect
facet can be used to dispatch a state effect when the editor is focused or blurred.
Changelog
6.8.1 (2023-02-08)
Fix an issue where tooltips that have their height reduced have their height flicker when scrolling or otherwise interacting with the editor.
Changelog
6.8.0 (2023-02-07)
Fix a regression that caused clicking on the scrollbar to move the selection.
Fix an issue where focus or blur event handlers that dispatched editor transactions could corrupt the mouse selection state.
Fix a CSS regression that prevented the drop cursor from being positioned properly.
WidgetType.updateDOM
is now passed the editor view object.
Changelog
6.7.3 (2023-01-12)
Fix a bug in posAtCoords
that could cause incorrect results for positions to the left of a wrapped line.
Changelog
6.7.2 (2023-01-04)
Fix a regression where the cursor didn't restart its blink cycle when moving it with the pointer.
Even without a key
property, measure request objects that are already scheduled will not be scheduled again by requestMeasure
.
Fix an issue where keymaps incorrectly interpreted key events that used Ctrl+Alt modifiers to simulate AltGr on Windows.
Fix a bug where line decorations with a different class
property would be treated as equal.
Fix a bug that caused drawSelection
to not notice when it was reconfigured.
Fix a crash in the gutter extension caused by sharing of mutable arrays.
Fix a regression that caused touch selection on mobile platforms to not work in an uneditable editor.
Fix a bug where DOM events on the boundary between lines could get assigned to the wrong line.
Changelog
6.7.1 (2022-12-12)
Make the editor properly scroll when moving the pointer out of it during drag selection.
Fix a regression where clicking below the content element in an editor with its own height didn't focus the editor.
Changelog
6.7.0 (2022-12-07)
Make the editor notice widget height changes to automatically adjust its height information.
Fix an issue where widget buffers could be incorrectly omitted after empty lines.
Fix an issue in content redrawing that could cause coordsAtPos
to return incorrect results.
The static RectangleMarker.forRange
method exposes the logic used by the editor to draw rectangles covering a selection range.
Layers can now provide a destroy
function to be called when the layer is removed.
The new highlightWhitespace
extension makes spaces and tabs in the editor visible.
The highlightTrailingWhitespace
extension can be used to make trailing whitespace stand out.
Changelog
6.6.0 (2022-11-24)
The layer
function can now be used to define extensions that draw DOM elements over or below the document text.
Tooltips that are bigger than the available vertical space for them will now have their height set so that they don't stick out of the window. The new resize
property on TooltipView
can be used to opt out of this behavior.