github ianstormtaylor/slate slate@0.131.0

4 hours ago

Minor Changes

  • #6173 7850c31 Thanks @dylans! - Transforms.wrapNodes and Transforms.unwrapNodes now unhang a range by default and accept hanging, like setNodes, insertNodes, mergeNodes and removeNodes. A selection that ends at the start of the next block no longer wraps or unwraps that block. Pass hanging: true to keep the old behavior.

Patch Changes

  • #6177 fdc3dac Thanks @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 explicit at now act like removeNodes again.

  • #6176 22cf872 Thanks @dylans! - Fix insertFragment into an editor whose only block is empty, which left an extra untyped empty block before the inserted content (a regression in 0.130).

  • #6181 ec75af0 Thanks @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.

Don't miss a new slate release

NewReleases is sending notifications on new releases.