@codemirror/view
Advanced tools
Changelog
6.28.2 (2024-06-21)
Only use EditContext
on Chrome versions that support passing it an inverted selection range.
Fix an issue that prevented non-inclusive block widgets from having their updateDOM
method called when changed.
Re-enable EditContext
use on Chrome 126 and up.
Changelog
6.28.1 (2024-06-12)
Disable EditContext
by default again, to work around a regression where Chrome's implementation doesn't support inverted selections.
Make sure EditorView.editable
is respected when EditContext
is used.
Changelog
6.28.0 (2024-06-10)
Fix an issue where long lines broken up by block widgets were sometimes only partially rendered.
The editor will now, when available (which is only on Chrome for the foreseeable future) use the EditContext
API to capture text input.
Changelog
6.27.0 (2024-06-04)
The new setTabFocusMode
method can be used to control whether the editor disables key bindings for Tab and Shift-Tab.
Changelog
6.26.4 (2024-06-04)
Fix an issue where commands with an optional second argument would get the keyboard event in that argument when called from a keymap.
Fix an issue that could cause the cursor to be rendered on the wrong side of a zero-length block widget.
Fix an issue where drawSelection
got confused by block widgets in line-wrapped editors in some situations.
Don't hide the native selection in widgets that have focus.
Make sure that clicking an unfocusable editor still remove focus from any other focused elements.
Fix a crash when loading the package in a non-browser environment.
Stop mouse selection when the user types.
Changelog
6.26.3 (2024-04-12)
Fix an issue where dispatching an update to an editor before it measured itself for the first time could cause the scroll position to incorrectly move.
Fix a crash when multiple tooltips with arrows are shown.
Changelog
6.26.2 (2024-04-09)
Improve behavior of scrollPastEnd
in a scaled editor.
When available, use Selection.getComposedRanges
on Safari to find the selection inside a shadow DOM.
Remove the workaround that avoided inappropriate styling on composed text after a decoration again, since it breaks the stock Android virtual keyboard.
Changelog
6.26.1 (2024-03-28)
Fix the editor getting stuck in composition when Safari fails to fire a compositionend event for a dead key composition.
Fix an issue where, with IME systems that kept the cursor at the start of the composed text, the editor misidentified the target node and disrupted composition.
Fix a bug where in a line-wrapped editor, with some content, the initial scroll position would be off from the top of the document.