Another release today, this time with a lot of bugfixes and small features driven by some real-world ProseMirror work I’ve been doing, along with a handful of minor breaking changes that clean up some bad decisions from the past.
The most meaningful change in this release (which was already foreshadowed in 0.19.0) is that selections are represented in a more generic way, and get more control over how they behave when they are deleted or replaced. If your code still assumes a selection is either a text selection or a node selection, you should write it in a different way.
prosemirror-model 0.20.0 (2017-04-03)
Fix crash in IE when parsing DOM content.
prosemirror-transform 0.20.0 (2017-04-03)
Fixes issue where replacing would sometimes unexpectedly split nodes.
prosemirror-state 0.20.0 (2017-04-03)
Selection.near no longer accepts a
TextSelection.between may now return a node selection when the document does not contain a valid cursor position.
Selections have a new method
getBookmark that custom selection classes can implement to allow the undo history to accurately store and restore them.
The new selection class
AllSelection can be used to select the entire document.
prosemirror-view 0.20.0 (2017-04-03)
inclusiveRight options to inline decorations were renamed to
inclusiveEnd so that they also make sense in right-to-left text. The old names work with a warning until the next release.
The default styling for lists and blockquotes was removed from
prosemirror.css. (They were moved to the
Fixes reading of selection in Chrome in a shadow DOM.
Registering DOM event handlers that the editor doesn’t listen to by default with the
handleDOMEvents prop should work again.
Backspacing after turning off a mark now works again in Firefox.
prosemirror-inputrules 0.20.0 (2017-04-03)
The input rules plugin no longer implicitly binds backspace to undo the last applied rule.
This module now exposes a command
undoInputRule, which will revert an input rule when run directly after one was applied.
prosemirror-history 0.20.0 (2017-04-03)
Appended transactions no longer generate undo history events.
prosemirror-commands 0.20.0 (2017-04-03)
prosemirror-schema-list 0.20.0 (2017-04-03)
liftListItem command can now lift items out of a list entirely, when the parent node isn’t another list.