@codemirror/view
Advanced tools
Changelog
0.18.0 (2021-03-03)
The themeClass
function and ``-style selectors in themes are no longer supported (prefixing with cm-
should be done manually now).
Themes must now use &
(instead of an extra $
) to target the editor wrapper element.
The editor no longer adds cm-light
or cm-dark
classes. Targeting light or dark configurations in base themes should now be done by using a &light
or &dark
top-level selector.
Changelog
0.17.13 (2021-03-03)
Work around a Firefox bug where it won't draw the cursor when it is between uneditable elements.
Fix a bug that broke built-in mouse event handling.
Changelog
0.17.12 (2021-03-02)
Avoid interfering with touch events, to allow native selection behavior.
Fix a bug that broke sub-selectors with multiple &
placeholders in themes.
Changelog
0.17.11 (2021-02-25)
Fix vertical cursor motion on Safari with a larger line-height.
Fix incorrect selection drawing (with drawSelection
) when the selection spans to just after a soft wrap point.
Fix an issue where compositions on Safari were inappropriately aborted in some circumstances.
The view will now redraw when the EditorView.phrases
facet changes, to make sure translated text is properly updated.
Changelog
0.17.10 (2021-02-22)
Long words without spaces, when line-wrapping is enabled, are now properly broken.
Fix the horizontal position of selections drawn by drawSelection
in right-to-left editors with a scrollbar.
Changelog
0.17.9 (2021-02-18)
Fix an issue where pasting linewise at the start of a line left the cursor before the inserted content.
Changelog
0.17.8 (2021-02-16)
Fix a problem where the DOM selection and the editor state could get out of sync in non-editable mode.
Fix a crash when the editor was hidden on Safari, due to getClientRects
returning an empty list.
Prevent Firefox from making the scrollable element keyboard-focusable.
Changelog
0.17.7 (2021-01-25)
Add an EditorView.announce
state effect that can be used to conveniently provide screen reader announcements.
Changelog
0.17.6 (2021-01-22)
Avoid creating very high scroll containers for large documents so that we don't overflow the DOM's fixed-precision numbers.