prosemirror-state
Advanced tools
Changelog
1.2.4 (2019-08-12)
Transaction.setSelection
now immediately checks whether the given selection points into the proper document, rather than silently accepting an invalid selection.
Changelog
1.2.3 (2019-05-08)
The insertText
method now collapses the selection to the end of the inserted text, even when given explicit start/end positions.
Changelog
1.2.2 (2018-07-23)
The "appendedTransaction"
meta property on appended transactions now points to the root transaction instead of at the transaction itself, which it accidentally did before.
Changelog
1.2.1 (2018-07-02)
Fixes a bug in the default implementation of Selection.getBookmark
.
Changelog
1.2.0 (2018-04-05)
EditorState.create
now accepts a storedMark
option to set the state's stored marks.
EditorState.toJSON
and fromJSON
persist the set of stored marks, when available.
Changelog
1.1.1 (2018-03-15)
Throw errors, rather than constructing invalid objects, when deserializing from invalid JSON data.
Changelog
1.1.0 (2018-01-22)
EditorState.toJSON
now accepts a string or number as argument to support the way JSON.stringify
can call it.
Changelog
1.0.2 (2017-12-13)
Fix issue where a character might be selected after overwriting across block nodes.
Make sure replaceSelectionWith
doesn't needlessly copy unmarked nodes.