@codemirror/view
Advanced tools
Changelog
0.19.11 (2021-11-03)
EditorView.scrollPosIntoView
has been deprecated. Use the EditorView.scrollTo
effect instead.
The new EditorView.centerOn
effect can be used to scroll a given range to the center of the view.
Changelog
0.19.10 (2021-11-02)
Don't crash when IntersectionObserver
fires its callback without any records. Try to handle some backspace issues on Chrome Android
Using backspace near uneditable widgets on Chrome Android should now be more reliable.
Work around a number of browser bugs by always rendering zero-width spaces around in-content widgets, so that browsers will treat the positions near them as valid cursor positions and not try to run composition across widget boundaries.
Work around bogus composition changes created by Chrome Android after handled backspace presses.
Work around an issue where tapping on an uneditable node in the editor would sometimes fail to show the virtual keyboard on Chrome Android.
Prevent translation services from translating the editor content. Show direction override characters as special chars by default
specialChars
will now, by default, replace direction override chars, to mitigate https://trojansource.codes/ attacks.
The editor view will, if parent
is given but root
is not, derive the root from the parent element.
Line decorations now accept a class
property to directly add DOM classes to the line.
Changelog
0.19.9 (2021-10-01)
Fix an issue where some kinds of reflows in the surrounding document could move unrendered parts of the editor into view without the editor noticing and updating its viewport.
Fix an occasional crash in the selection drawing extension.
Changelog
0.19.8 (2021-09-26)
Fix a bug that could, on DOM changes near block widgets, insert superfluous line breaks.
Make interacting with a destroyed editor view do nothing, rather than crash, to avoid tripping people up with pending timeouts and such.
Make sure ViewUpdate.viewportChanged
is true whenever visibleRanges
changes, so that plugins acting only on visible ranges can use it to check when to update.
Fix line-wise cut on empty lines.
Changelog
0.19.7 (2021-09-13)
The view is now aware of the new EditorState.readOnly
property, and suppresses events that modify the document when it is true.
Changelog
0.19.6 (2021-09-10)
Remove a console.log
that slipped into the previous release.
Changelog
0.19.5 (2021-09-09)
The new EditorView.scrollTo
effect can be used to scroll a given range into view.
Changelog
0.19.4 (2021-09-01)
Fix an issue where lines containing just a widget decoration wrapped in a mark decoration could be displayed with 0 height.
Changelog
0.19.3 (2021-08-25)
Fix a view corruption that could happen in situations involving overlapping mark decorations.