@codemirror/view
Advanced tools
Changelog
0.19.1 (2021-08-11)
The view now emits new-style user event annotations for the transactions it generates.
Fix a bug where coordsAtPos
would allow the passed side
argument to override widget sides, producing incorrect cursor positions.
Fix a bug that could cause content lines to be misaligned in certain situations involving widgets at the end of lines.
Fix an issue where, if the browser decided to modify DOM attributes in the content in response to some editing action, the view failed to reset those again.
Changelog
0.18.19 (2021-07-12)
Fix a regression where EditorView.editable.of(false)
didn't disable editing on Webkit-based browsers.
Changelog
0.18.18 (2021-07-06)
Fix a bug that caused EditorView.moveVertically
to only move by one line, even when given a custom distance, in some cases.
Hide Safari's native bold/italic/underline controls for the content.
Fix a CSS problem that prevented Safari from breaking words longer than the line in line-wrapping mode.
Avoid a problem where composition would be inappropriately abored on Safari.
Fix drag-selection that scrolls the content by dragging past the visible viewport.
posAtCoords
now has an imprecise mode where it'll return an approximate position even for parts of the document that aren't currently rendered.
Changelog
0.18.17 (2021-06-14)
Make drawSelection
behave properly when lines are split by block widgets.
Make sure drawn selections that span a single line break don't leave a gap between the lines.
Changelog
0.18.16 (2021-06-03)
Fix a crash that could occur when the document changed during mouse selection.
Fix a bug where composition inside styled content would sometimes be inappropriately aborted by editor DOM updates.
MouseSelectionStyle.update
may now return true to indicate it should be queried for a new selection after the update.
Changelog
0.18.15 (2021-06-01)
Fix a bug that would, in very specific circumstances, cause posAtCoords
to go into an infinite loop in Safari.
Fix a bug where some types of IME input on Mobile Safari would drop text.
Changelog
0.18.14 (2021-05-28)
Fix an issue where the DOM selection was sometimes not properly updated when next to a widget.
Invert the order in which overlapping decorations are drawn so that higher-precedence decorations are nested inside lower-precedence ones (and thus override their styling).
Fix a but in posAtCoords
where it would in some situations return -1 instead of null
.
A new plugin field, PluginField.atomicRanges
, can be used to cause cursor motion to skip past some ranges of the document.
Changelog
0.18.13 (2021-05-20)
Fix a bug that would cause the content DOM update to crash in specific circumstances.
Work around an issue where, after some types of changes, Mobile Safari would ignore Enter presses.
Make iOS enter and backspace handling more robust, so that platform bugs are less likely to break those keys in the editor.
Fix a regression where Esc + Tab no longer allowed the user to exit the editor.
You can now drop text files into the editor.
Changelog
0.18.12 (2021-05-10)
Work around a Mobile Safari bug where, after backspacing out the last character on a line, Enter didn't work anymore.
Work around a problem in Mobile Safari where you couldn't tap to put the cursor at the end of a line that ended in a widget.