@codemirror/view
Advanced tools
Changelog
6.25.0 (2024-03-04)
Properly recognize Android GBoard enter presses that strip a space at the end of the line as enter.
Fix a bug that caused the gutter to have the wrong height when the editor was scaled after construction.
When starting a composition after a non-inclusive mark decoration, temporarily insert a widget that prevents the composed text from inheriting that mark's styles.
Make sure the selection is repositioned when a transaction changes decorations without changing the document.
View plugins can now provide a docViewUpdate
method that is called whenever the document view is updated.
Layers now take a updateOnDocUpdate
option that controls whether they are automatically updated when the document view changes.
Changelog
6.24.1 (2024-02-19)
Fix a crash that happens when hover tooltips are active during changes, introduced in 6.24.0.
Changelog
6.24.0 (2024-02-09)
Fix an issue that broke context-menu select-all on Chrome when the viewport didn't cover the whole document.
Make sure tooltips are ordered by extension precedence in the DOM.
Hover tooltip sources may now return multiple tooltips.
Changelog
6.23.1 (2024-01-24)
Fix a bug that caused Tooltip.above
to not take effect for tooltips that were already present when the tooltip plugin is initialized.
Automatically reposition tooltips when their size changes.
Changelog
6.23.0 (2023-12-28)
Work around odd iOS Safari behavior when doing select all.
Fix a composition interruption when an widget is inserted next to the cursor.
Fix a crash in bidirectional cursor motion.
Simplify visual motion through bidirectional text, fix several corner cases where it would work badly.
Fix a bug that broke some bidi isolates not on the first line of the document.
EditorView.bidiIsolatedRanges
now supports automatically determining the direction of the range if not provided by the decoration.
EditorView.visualLineSide
can be used to find the visual end or start of a line with bidirectional text.
The new EditorView.outerDecorations
facet can be used to provide decorations that should always be at the bottom of the precedence stack.
Changelog
6.22.3 (2023-12-13)
Fix a bug that could cause tooltips to be unnecessarily be positioned absolutely.
Make sure that, when an editor creates tooltips immediately on initialization, the editor is attached to the document when their mount
callback is called.
Changelog
6.22.2 (2023-12-08)
Fix an issue in the bidirectional motion that could cause the cursor to get stuck in a loop when a zero-width non-joiner char was placed on a direction boundary.
Fix a bug that corrupts the editor's internal view tree data structure on some types of edits, putting the editor in a broken state.
Changelog
6.22.1 (2023-11-27)
Call widget destroy
methods when the entire editor is destroyed or reset.
Work around an issue on Safari on macOS Sonoma that made the native cursor visible even when drawSelection
is enabled.
Fix an issue where, on some browsers, the screenreader announced text ended up in the printed document.
Fix a bug where a hover tooltip could stick around even though the pointer was no longer on the editor when it was moved out over the tooltip.
Fix an issue where hover tooltips could close when moving the mouse onto them due to mouse position rounding issues.
Changelog
6.22.0 (2023-11-03)
Exceptions raised by update listeners are now routed to the configured exception sink, if any.
Fix an issue where passing large scroll margins to scrollIntoView
would cause the measure loop to fail to terminate.
Widgets that are draggable (and allow drag events through in their ignoreEvent
implementation) can now use the editor's built-in drag/drop behavior.
The new scrollTo
option to EditorView
allows an initial scroll position to be provided.
The new EditorView.scrollSnapshot
method returns an effect that can be used to reset to a previous scroll position.
Changelog
6.21.4 (2023-10-24)
Support the offset
, getCoords
, overlap
, and resize
properties on hover tooltips, as long as they aren't given conflicting values when there are multiple active hover tooltips.
Fix a bug that caused tooltips in the default configuration to be positioned incorrectly on Chrome when the editor was transformed.