prosemirror-view
Advanced tools
Changelog
1.30.1 (2023-02-04)
Fix a bug that caused posAtCoords
to always return the position after a leaf node when querying a position on top of the node's element.
Fix an issue where, when putting focus on the editor by clicking at the very start of the document, the editor would restore a previous selection.
Changelog
1.30.0 (2023-01-19)
EditorView
now has pasteHTML
and pasteText
methods which initiate paste handling.
Changelog
1.29.2 (2023-01-17)
Make sure enter key handlers are called on Chrome Android when the cursor is in a position where the native behavior of Enter doesn't change the document.
Fix a crash that could occur when starting a composition at the end of a non-inclusive mark.
Fix a bug in (vertical) endOfTextblock
that caused it to return falsely positive results inside textblocks that had a separate contentDOM
.
Changelog
1.29.1 (2022-11-14)
Fix a problem when returning decorations from an outer editor from the decorations
prop.
Changelog
1.29.0 (2022-10-12)
Fix an issue where HTML comments added to the clipboard by the OS throw off the clipboard parser.
Make sure Chrome Android's native behavior on pressing Enter in an empty nested list item is replaced by the result of the editor's Enter key handler.
The transformPastedHTML
, transformPastedText
, transformPasted
, transformCopied
, and clipboardTextSerializer
props are now passed the view instance as last argument.
Changelog
1.28.3 (2022-10-05)
Work around the five-year-old Safari bug where it won't accurately report the selection inside shadow roots, which would break ProseMirror when put in shadow DOM.
Changelog
1.28.2 (2022-09-24)
Avoid a crash in selection updates in a hidden editor on Safari.
Changelog
1.28.1 (2022-09-21)
Fix an issue where the editor would reset its scroll position to the top of the document for any state reconfiguration, even if the document was unchanged.
Changelog
1.28.0 (2022-09-09)
Fix an issue where the editor wouldn't realize it was focused on IE when IE's resize controls are on an element inside the content.
The new transformCopied
prop can be used to transform a copied/cut slice before it is serialized to the clipboard.
Changelog
1.27.2 (2022-08-19)
Fix an issue where DecorationSet.map
, given a mapping with multiple steps, could in some cases corrupt the decorations.
Stop calling handleClick
when the mouse moved but failed to fire mousemove events (for example when dragging a scrollbar).