prosemirror-transform
Advanced tools
Changelog
1.7.0 (2022-08-16)
The new AttrStep
(and Transform.setNodeAttribute
) can be used to set individual attributes on a node.
AddNodeMarkStep
and RemoveNodeMarkStep
can now be used to add and remove marks on individual nodes. Transform.addNodeMark
/removeNodeMark
provide an interface to these in transform objects.
Changelog
1.6.0 (2022-06-01)
Allow replace steps to be mapped through changes that delete content next to their start and end points, as long as no delete spans across those points.
MapResult
objects now provide information about whether the tokens before, after, and around the position were deleted.
Changelog
1.4.2 (2022-04-05)
Make replacements that span to the end of a textblock more consistent with those ending in the middle of the block.
Changelog
1.4.1 (2022-03-31)
replaceRange
will now close multiple defining parent nodes when appropriate.
Changelog
1.4.0 (2022-03-21)
Node specs can now use the definingForContent
and definingAsContext
properties to opt in to specific parts of the existing defining
behavior.
Changelog
1.3.4 (2022-02-04)
Make sure that constructing an empty StepMap
returns StepMap.empty
.
Changelog
1.3.3 (2021-09-29)
Fix an inconsistency in deleteRange
where it would delete the parent node for ranges covering all textblocks in a given parent.