prosemirror-transform
Advanced tools
Changelog
0.21.1 (2017-05-16)
addMark
no longer assumes marks always exclude only themselves.
replaceRange
](https://prosemirror.net/docs/ref/version/0.21.0.html#transform.Transform.replaceRange) and deleteRange
will no longer expand the range across isolating node boundaries.
Changelog
0.20.0 (2017-04-03)
Fixes issue where replacing would sometimes unexpectedly split nodes.
Changelog
0.18.0 (2017-02-24)
Transform.setNodeType
now takes an optional argument to set the new node's attributes.
Steps now provide an offset
method, which makes it possible to create a copy the step with its position offset by a given amount.
docChanged
is now a property on the Transform
class, rather than its Transaction
subclass.
Mapping
instances now have invert
and appendMappingInverted
methods to make mapping through them in reverse easier.
Changelog
0.15.0 (2016-12-10)
Fix bug where pasted/inserted content would sometimes get incorrectly closed at the right side.
Changelog
0.13.0 (2016-11-11)
Fix issue where Transform.replace
would, in specific circumstances, unneccessarily drop content.
The new Transform
method replaceRange
, replaceRangeWith
, and deleteRange
provide a way to replace and delete content in a 'do what I mean' way, automatically expanding the replaced region over empty parent nodes and including the parent nodes in the inserted content when appropriate.