@codemirror/view
Advanced tools
Changelog
6.15.2 (2023-07-18)
Fix the check that made sure compositions are dropped when the selection is moved.
Changelog
6.15.1 (2023-07-18)
Fix a regression that could cause the composition content to be drawn incorrectly.
Changelog
6.15.0 (2023-07-17)
Fix dragging a selection from inside the current selection on macOS.
Fix an issue that could cause the scroll position to jump wildly
Don't try to scroll fixed-positioned elements into view by scrolling their parent elements.
Fix a bug that caused the cursor to be hidden when showing a placeholder that consisted of the empty string.
Resolve some issues where composition could incorrectly affect nearby replaced content.
Key bindings can now set a stopPropagation
field to cause the view to stop the key event propagation when it considers the event handled.
Changelog
6.14.1 (2023-07-06)
Fix an issue where scrolling up through line-wrapped text would sometimes cause the scroll position to pop down.
Fix an issue where clicking wouldn't focus the editor on Firefox when it was in an iframe and already the active element of the frame.
Fix a bug that could cause compositions to be disrupted because their surrounding DOM was repurposed for some other piece of content.
Fix a bug where adding content to the editor could inappropriately move the scroll position.
Extend detection of Enter presses on Android to beforeInput
events with an "insertLineBreak"
type.
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.