@codemirror/view
Advanced tools
Changelog
6.14.0 (2023-06-23)
When dragging text inside the editor, look at the state of Ctrl (or Alt on macOS) at the time of the drop, not the start of drag, to determine whether to move or copy the text.
Fix an issue where having a bunch of padding on lines could cause vertical cursor motion and posAtCoords
to jump over lines.
Block widget decorations can now be given an inlineOrder
option to make them appear in the same ordering as surrounding inline widgets.
Changelog
6.13.2 (2023-06-13)
Fix an issue in scroll position stabilization for changes above the visible, where Chrome already does this natively and we ended up compensating twice.
Changelog
6.13.1 (2023-06-12)
Fix a bug where the cursor would in some circumstances be drawn on the wrong side of an inline widget.
Fix an issue where scrollPastEnd
could cause the scroll position of editors that weren't in view to be changed unnecessarily.
Changelog
6.13.0 (2023-06-05)
Forbid widget decoration side values bigger than 10000, to prevent them from breaking range ordering invariants.
Fix a bug where differences between widgets' estimated and actual heights could cause the editor to inappropriately move the scroll position.
Avoid another situation in which composition that inserts line breaks could corrupt the editor DOM.
Inline widgets may now introduce line breaks, if they report this through the WidgetType.lineBreaks
property.
Changelog
6.12.0 (2023-05-18)
Remove an accidentally included console.log
.
EditorViewConfig.dispatch
is now passed the view object as a second argument.
Changelog
6.11.3 (2023-05-17)
Make sure pointer selection respects EditorView.atomicRanges
.
Preserve DOM widgets when their decoration type changes but they otherwise stay in the same place.
Fix a bug in drawSelection
that could lead to invisible or incorrect selections for a blank line below a block widget.
Changelog
6.11.2 (2023-05-13)
Fix a bug where the crosshairCursor
extension could, when non-native key events were fired, trigger disruptive and needless view updates.
Fix an Android issue where backspacing at the front of a line with widget decorations could replace those decorations with their text content.
Respect scroll margins when scrolling the target of drag-selection into view.
Validate selection offsets reported by the browser, to work around Safari giving us invalid values in some cases.
Changelog
6.11.1 (2023-05-09)
Don't preserve the DOM around a composition that spans multiple lines.
Changelog
6.11.0 (2023-05-03)
Gutters now support a widgetMarker
option that can be used to add markers next to block widgets.