Minor Changes
- #6173
7850c31Thanks @dylans! -Transforms.wrapNodesandTransforms.unwrapNodesnow unhang a range by default and accepthanging, likesetNodes,insertNodes,mergeNodesandremoveNodes. A selection that ends at the start of the next block no longer wraps or unwraps that block. Passhanging: trueto keep the old behavior.
Patch Changes
-
#6177
fdc3dacThanks @dylans! - Only refill an emptied editor when a delete runs at the selection. In 0.130,Transforms.delete(editor, { at: path })also inserted an untyped empty block when it removed the last node, which left an extra block behind in code that deletes every block and then inserts new content. Programmatic deletes with an explicitatnow act likeremoveNodesagain. -
#6176
22cf872Thanks @dylans! - FixinsertFragmentinto an editor whose only block is empty, which left an extra untyped empty block before the inserted content (a regression in 0.130). -
#6181
ec75af0Thanks @dylans! - Backspace at the start of a block that follows a list or table no longer pulls that block into the list or table. An empty previous block is now only removed in place of the merge when it's a sibling; otherwise the block merges into it as usual.