@codemirror/view
Advanced tools
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.
Changelog
0.19.2 (2021-08-23)
The package now exports a scrollPastEnd
function, which returns an extension that adds space below the document to allow the last line to be scrolled to the top of the editor.
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.