prosemirror-view
Advanced tools
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).
Changelog
1.27.1 (2022-08-16)
Fix a bug in DecorationSet.map
that could cause invalid mapping when step maps contain multiple replaced ranges.
Make sure that when the editor receives focus via tab or calling .focus()
on its DOM element, the existing selection is restored.
Avoid collapsing of whitespace in Firefox when the editor doesn't have white-space
set to pre-wrap
.
Changelog
1.27.0 (2022-07-20)
Fix a bug that in some situations caused composition to be disrupted on Chrome due to a workaround for another browser issue activating inappropriately.
EditorProps
now takes an optional type parameter that indicates the type of this
in prop functions.