@codemirror/view
Advanced tools
Changelog
6.20.1 (2023-09-22)
Fix a crash in plugin event handlers after dynamic reconfiguration.
Fix an issue where, on Chrome, tooltips would no longer use fixed positioning.
Changelog
6.20.0 (2023-09-20)
Fix an issue that caused repositionTooltips
to crash when it was called on an editor without tooltips.
Fix an issue that caused the tooltip system to leave empty nodes in the DOM when an editor using the parent
option to tooltips
is destroyed.
Fix a bug that regression mouse interaction with the area of a fixed-size editor that isn't covered by the content.
Fix some issues with the way moveVertically
behaved for positions on line wrap points.
Fix a bug that could cause the document DOM to be incorrectly updated on some types of viewport changes.
The new getDrawSelectionConfig
function returns the drawSelection
configuration for a given state.
Changelog
6.19.0 (2023-09-14)
Make sure the drop cursor is properly cleaned up even when another extension handles the drop event.
Fix a crash related to non-inclusive replacing block decorations.
The new EditorView.domEventObservers
(and the corresponding option to view plugins) allows you to register functions that are always called for an event, regardless of whether other handlers handled it.
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.