prosemirror-transform
Advanced tools
Changelog
1.1.0 (2018-06-20)
Transform.getMirror
, usable in obscure circumstances for inspecting the mirroring structure or a transform, is now a public method.
New utility function dropPoint
, which tries to find a valid position for dropping a slice near a given document position.
Changelog
1.0.9 (2018-04-05)
Fix a bug that made replaceStep
unable to generate wrapper nodes in some circumstances.
Changelog
1.0.8 (2018-04-04)
Fixes an issue where replaceStep
could generate slices that internally violated the schema.
Changelog
1.0.7 (2018-03-21)
Transform.deleteRange
will cover unmatched opening at the start of the deleted range.
Changelog
1.0.6 (2018-03-15)
Throw errors, rather than constructing invalid objects, when deserializing from invalid JSON data.
Changelog
1.0.5 (2018-03-14)
replaceStep
will now return null rather than an empty step when it fails to place the slice.
Avoid duplicating defining parent nodes in replaceRange
.
Changelog
1.0.4 (2018-02-23)
Fix overeager closing of destination nodes when fitting a slice during replacing.
Changelog
1.0.3 (2018-02-23)
Fix a problem where slice-placing didn't handle content matches correctly and might generate invalid steps or fail to generate steps though a valid one exists.
Allows adjacent nodes from an inserted slice to be placed in different parent nodes, allowing Transform.replace
to create fits that weren't previously found.