@codemirror/view
Advanced tools
Changelog
6.2.0 (2022-08-05)
Fix a bug where posAtCoords
would return the wrong results for positions to the right of wrapped lines.
The new EditorView.setRoot
method can be used when an editor view is moved to a new document or shadow root.
Changelog
6.1.4 (2022-08-04)
Make selection-restoration on focus more reliable.
Changelog
6.1.3 (2022-08-03)
Fix a bug where a document that contains only non-printing characters would lead to bogus text measurements (and, from those, to crashing).
Make sure differences between estimated and actual block heights don't cause visible scroll glitches.
Changelog
6.1.2 (2022-07-27)
Fix an issue where double tapping enter to confirm IME input and insert a newline on iOS would sometimes insert two newlines.
Fix an issue on iOS where a composition could get aborted if the editor scrolled on backspace.
Changelog
6.1.1 (2022-07-25)
Make highlightSpecialChars
replace directional isolate characters by default.
The editor will now try to suppress browsers' native behavior of resetting the selection in the editable content when the editable element is focused (programmatically, with tab, etc).
Fix a CSS issue that made it possible, when the gutters were wide enough, for them to overlap with the content.
Changelog
6.1.0 (2022-07-19)
MatchDecorator
now supports a decorate
option that can be used to customize the way decorations are added for each match.
Changelog
6.0.3 (2022-07-08)
Fix a problem where posAtCoords
could incorrectly return the start of the next line when querying positions between lines.
Fix an issue where registering a high-precedence keymap made keymap handling take precedence over other keydown event handlers.
Ctrl/Cmd-clicking can now remove ranges from a multi-range selection.
Changelog
6.0.2 (2022-06-23)
Fix a CSS issue that broke horizontal scroll width stabilization.
Fix a bug where defaultLineHeight
could get an incorrect value in very narrow editors.
Changelog
6.0.1 (2022-06-17)
Avoid DOM selection corruption when the editor doesn't have focus but has selection and updates its content.
Fall back to dispatching by key code when a key event produces a non-ASCII character (so that Cyrillic and Arabic keyboards can still use bindings specified with Latin characters).
Changelog
6.0.0 (2022-06-08)
The new static EditorView.findFromDOM
method can be used to retrieve an editor instance from its DOM structure.
Instead of passing a constructed state to the EditorView
constructor, it is now also possible to inline the configuration options to the state in the view config object.