prosemirror-view
Advanced tools
Changelog
1.31.4 (2023-05-31)
Make sure destroy
is called on node views that are replaced by changing a node's markup.
Changelog
1.31.3 (2023-05-17)
Fix an issue that could cause the clipboard parser to create invalid slices when parsing content containing isolating nodes.
Include CommonJS type declarations in the package to please new TypeScript resolution settings.
Changelog
1.31.2 (2023-05-10)
Fix a bug that broke backspace after empty lines in code blocks on Firefox.
Make it possible for the attributes
prop to override the translate
attribute.
Changelog
1.31.1 (2023-05-01)
Fix a bug that could cause a view crash on some kind of document updates.
Changelog
1.31.0 (2023-04-26)
Fix an issue where, when the browser failed to return a cursor for a set of coordinates (as in a shadow root in Chrome) the library's own algorithm worked poorly for coordinates between lines in a textblock.
Improve performance of changing a parent node (by type or attributes) without modifying its children by reusing the DOM of the child nodes.
Fix an issue where, in right-to-left context, the left and right arrow keys could get stuck on a selectable leaf node because the editor was moving the selection in the wrong direction.
Fix a regression in coordsAtPos
when querying the position of a line wrap.
Attach a "composition"
meta field to transactions generated from DOM changes.
Changelog
1.30.2 (2023-03-13)
Fix an issue where posAtCoords
could incorrectly return positions outside of a table when querying a coordinate inside it.
Update the type of the getPos
callback to include undefined in its return type. Update broken link (ViewProps -> EditorProps) Also detect iOS enter when the new block type is a less common node
Fix an issue where Enter on iOS would sometimes not be handled by the library.
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
.