@codemirror/view
Advanced tools
Changelog
0.18.10 (2021-04-27)
Fix a bug where some types of updates wouldn't properly cause marks around the changes to be joined in the DOM.
Fix an issue where the content and gutters in a fixed-height editor could be smaller than the editor height.
Fix a crash on Safari when initializing an editor in an unfocused window.
Fix a bug where the editor would incorrectly conclude it was out of view in some types of absolutely positioned parent elements.
Changelog
0.18.9 (2021-04-23)
Fix a crash that occurred when determining DOM coordinates in some specific situations.
Fix a crash when a DOM change that ended at a zero-width view element (widget) removed that element from the DOM.
Disable autocorrect and autocapitalize by default, since in most code-editor contexts they get in the way. You can use EditorView.contentAttributes
to override this.
Fix a bug that interfered with native touch selection handling on Android.
Fix an unnecessary DOM update after composition that would disrupt touch selection on Android.
Add a workaround for Safari's broken selection reporting when the editor is in a shadow DOM tree.
Fix select-all from the context menu on Safari.
Changelog
0.18.8 (2021-04-19)
Handle selection replacements where the inserted text matches the start/end of the replaced text better.
Fix an issue where the editor would miss scroll events when it was placed in a DOM component slot.
Changelog
0.18.7 (2021-04-13)
Fix a crash when drag-selecting out of the editor with editable turned off.
Backspace and delete now largely work in an editor without a keymap.
Pressing backspace on iOS should now properly update the virtual keyboard's capitalize and autocorrect state.
Prevent random line-wrapping in (non-wrapping) editors on Mobile Safari.
Changelog
0.18.6 (2021-04-08)
Fix an issue in the compiled output that would break the code when minified with terser.
Changelog
0.18.5 (2021-04-07)
Improve handling of bidi text with brackets (conforming to Unicode 13's bidi algorithm).
Fix the position where drawSelection
displays the cursor on bidi boundaries.
Changelog
0.18.4 (2021-04-07)
Fix an issue where the default focus ring gets obscured by the gutters and active line.
Fix an issue where the editor believed Chrome Android didn't support the CSS tab-size
style.
Don't style active lines when there are non-empty selection ranges, so that the active line background doesn't obscure the selection.
Make iOS autocapitalize update properly when you press Enter.
Changelog
0.18.3 (2021-03-19)
The outer DOM element now has class cm-editor
instead of cm-wrap
(cm-wrap
will be present as well until 0.19).
Improve behavior of posAtCoords
when the position is near text but not in any character's actual box.
Changelog
0.18.2 (2021-03-19)
Triple-clicking now selects the line break after the clicked line (if any).
Fix an issue where the drawSelection
plugin would fail to draw the top line of the selection when it started in an empty line.
Fix an issue where, at the end of a specific type of composition on iOS, the editor read the DOM before the browser was done updating it.