@codemirror/view
Advanced tools
Changelog
6.18.1 (2023-09-11)
Fix an issue where the editor duplicated text when the browser moved content into the focused text node on composition.
Make sure widgetMarker
is called for gutters on lines covered by a block replace decoration.
Fix an issue where the cursor could be shown in a position that doesn't allow a cursor when the selection is in a block widget.
Changelog
6.18.0 (2023-09-05)
The new EditorView.scaleX
and scaleY
properties return the CSS-transformed scale of the editor (or 1 when not scaled).
The editor now supports being scaled with CSS.
Changelog
6.17.1 (2023-08-31)
Don't close the hover tooltip when the pointer moves over empty space caused by line breaks within the hovered range.
Fix a bug where on Chrome Android, if a virtual keyboard was slow to apply a change, the editor could end up dropping it.
Work around an issue where line-wise copy/cut didn't work in Firefox because the browser wasn't firing those events when nothing was selected.
Fix a crash triggered by the way some Android IME systems update the DOM.
Fix a bug that caused replacing a word by an emoji on Chrome Android to be treated as a backspace press.
Changelog
6.17.0 (2023-08-28)
Fix a bug that broke hover tooltips when hovering over a widget.
The new EditorView.cspNonce
facet can be used to provide a Content Security Policy nonce for the library's generated CSS.
The new EditorView.bidiIsolatedRanges
can be used to inform the editor about ranges styled as Unicode bidirection isolates, so that it can compute the character order correctly.
EditorView.dispatch
now also accepts an array of transactions to be applied together in a single view update.
The new dispatchTransactions
option to new EditorView
now replaces the old (deprecated but still supported) dispatch
option in a way that allows multiple transactions to be applied in one update.
Input handlers are now passed an additional argument that they can use to retrieve the default transaction that would be applied for the insertion.
Changelog
6.16.0 (2023-07-31)
Fix an issue that made the gutter not stick in place when the editor was in a right-to-left context.
The new EditorView.coordsForChar
method returns the client rectangle for a given character in the editor.
Changelog
6.15.3 (2023-07-18)
Fix another crash regression for compositions before line breaks.
Changelog
6.15.2 (2023-07-18)
Fix the check that made sure compositions are dropped when the selection is moved.
Changelog
6.15.1 (2023-07-18)
Fix a regression that could cause the composition content to be drawn incorrectly.
Changelog
6.15.0 (2023-07-17)
Fix dragging a selection from inside the current selection on macOS.
Fix an issue that could cause the scroll position to jump wildly
Don't try to scroll fixed-positioned elements into view by scrolling their parent elements.
Fix a bug that caused the cursor to be hidden when showing a placeholder that consisted of the empty string.
Resolve some issues where composition could incorrectly affect nearby replaced content.
Key bindings can now set a stopPropagation
field to cause the view to stop the key event propagation when it considers the event handled.
Changelog
6.14.1 (2023-07-06)
Fix an issue where scrolling up through line-wrapped text would sometimes cause the scroll position to pop down.
Fix an issue where clicking wouldn't focus the editor on Firefox when it was in an iframe and already the active element of the frame.
Fix a bug that could cause compositions to be disrupted because their surrounding DOM was repurposed for some other piece of content.
Fix a bug where adding content to the editor could inappropriately move the scroll position.
Extend detection of Enter presses on Android to beforeInput
events with an "insertLineBreak"
type.