prosemirror-view
Advanced tools
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.
Changelog
1.26.5 (2022-07-07)
Fix an issue where a composition happening at the same time as widget insertion/removal could corrupt the rendered DOM.
Fix a problem where coordsAtPos
would look inside the DOM for atomic nodes, and sometimes return very odd positions that way.