prosemirror-view
Advanced tools
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.
Changelog
1.26.4 (2022-07-04)
Avoid spurious type errors on handleDOMEvents
by widening the type for unknown event objects.
Changelog
1.26.3 (2022-06-29)
Work around a Safari bug where mutation records get delivered even though the observer wasn't observing when the mutations happened.
Changelog
1.26.2 (2022-06-22)
Mark prosemirror.css as having side effects in package.json.
Changelog
1.26.1 (2022-06-13)
Fix incorrect types for handleDrop
and decorations
. Document open properties on widget specs
Changelog
1.26.0 (2022-06-07)
Export the NodeViewConstructor
and MarkViewConstructor
types. Include Node/MarkViewConstructor in doc template
Changelog
1.25.0 (2022-06-01)
Mark views can now be specified with a separate editor prop, markViews
, to make it easier to get the types right.