@codemirror/view
Advanced tools
Changelog
6.3.1 (2022-10-10)
Fix a crash when trying to scroll something into view in an editor that wasn't in the visible DOM.
Fix an issue where coordsAtPos
returned the coordinates on the wrong side of a widget decoration wrapped in a mark decoration.
Fix an issue where content on long wrapped lines could fail to properly scroll into view.
Fix an issue where DOM change reading on Chrome Android could get confused when a transaction came in right after a beforeinput event for backspace, enter, or delete.
Changelog
6.3.0 (2022-09-28)
Reduce the amount of wrap-point jittering when scrolling through a very long wrapped line.
Fix an issue where scrolling to content that wasn't currently drawn due to being on a very long line would often fail to scroll to the right position.
Suppress double-space-adds-period behavior on Chrome Mac when it behaves weirdly next to widget.
Key binding objects with an any
property will now add handlers that are called for any key, within the ordering of the keybindings.
Changelog
6.2.5 (2022-09-24)
Don't override double/triple tap behavior on touch screen devices, so that the mobile selection menu pops up properly.
Fix an issue where updating the selection could crash on Safari when the editor was hidden.
Changelog
6.2.4 (2022-09-16)
Highlight the active line even when there is a selection. Prevent the active line background from obscuring the selection backdrop.
Fix an issue where elements with negative margins would confuse the editor's scrolling-into-view logic.
Fix scrolling to a specific position in an editor that has not been in view yet.
Changelog
6.2.3 (2022-09-08)
Fix a bug where cursor motion, when starting from a non-empty selection range, could get stuck on atomic ranges in some circumstances.
Avoid triggering Chrome Android's text-duplication issue when a period is typed in the middle of a word.
Changelog
6.2.2 (2022-08-31)
Don't reset the selection for selection change events that were suppressed by a node view.
Changelog
6.2.1 (2022-08-25)
Don't use the global document
variable to track focus, since that doesn't work in another window/frame.
Fix an issue where key handlers that didn't return true were sometimes called twice for the same keypress.
Avoid editing glitches when using deletion keys like ctrl-d on iOS.
Properly treat characters from the 'Arabic Presentation Forms-A' Unicode block as right-to-left.
Work around a Firefox bug that inserts text at the wrong point for specific cross-line selections.
Changelog
6.2.0 (2022-08-05)
Fix a bug where posAtCoords
would return the wrong results for positions to the right of wrapped lines.
The new EditorView.setRoot
method can be used when an editor view is moved to a new document or shadow root.
Changelog
6.1.3 (2022-08-03)
Fix a bug where a document that contains only non-printing characters would lead to bogus text measurements (and, from those, to crashing).
Make sure differences between estimated and actual block heights don't cause visible scroll glitches.