prosemirror-view
Advanced tools
Changelog
1.37.0 (2024-11-23)
Fix an issue on Safari where the (incorrect) top-level selection was used, instead of the workaround that also works inside shadow roots.
Mark views can now provide an ignoreMutation
method. Add ViewMutationRecord to doc template
Changelog
1.36.0 (2024-11-05)
Don't recreated TrustedTypePolicy
objects for every paste.
Add support for a destroy
method on custom mark views. Add MarkView to the doc template
Changelog
1.35.0 (2024-10-29)
The new NodeView.multiType
flag is now required to opt into handling different node types in a single node view. It used to be the default, but this tripped too many people up.
Changelog
1.34.3 (2024-09-19)
Fix an issue that would, during some types of document updates, leave the document DOM in an improper form.
Handle the case where drag-selecting in Firefox creates a selection with multiple distinct ranges.
Changelog
1.34.2 (2024-09-03)
Fix pasting in Chrome with the require-trusted-types-for CSP enabled.
Fix an issue where, for some kinds of IME on Windows, pressing Enter while in a composition would execute the resulting command on the wrong selection, erasing some typed content.
Changelog
1.34.1 (2024-08-26)
Fix null dereferences caused by the behavior of Chrome's newly supported caretPositionFromPoint
method.
Fix an issue where on Android, with GBoard, enter presses in code blocks while a spell correction was selected didn't insert a new line.
Changelog
1.34.0 (2024-08-23)
The DecorationGroup
interface now has a forEachSet
method to iterate though the contained decoration sets.
Changelog
1.33.11 (2024-08-19)
Delete the selection on composition start when on a mark boundary to force Chrome to apply the correct style to the composition.
When the browser starts a composition and the selection spans across blocks, start by clearing it to make sure the composed text node lands in a valid position.
Changelog
1.33.10 (2024-08-13)
Prevent triple clicks and clicks on atom nodes from dispatching a selection update when the new selection is equal to the current selection.
Don't crash when window.getSelection()
returns null.
Create a cursor wrapper when starting a composition with a selection that spans mark boundaries, to avoid odd DOM forms created by Chrome in such a situation.