github ianstormtaylor/slate slate@0.138.0

5 hours ago

Minor Changes

  • #6278 1b70b23 Thanks @dylans! - Add isWordCharacter to Editor.before, Editor.after and Editor.positions options for custom boundaries with unit: 'word', matching the callback supported by Editor.word.

  • #6282 f64a47f Thanks @dylans! - Editor.deleteFragment removes wholly selected sibling blocks when the selection starts at the start of a block and ends at the start of a later sibling, instead of emptying them. Ranges inside editor.isIsolated elements keep the previous behavior.

  • #6281 261fa43 Thanks @dylans! - Support select on insertText, insertFragment, splitNodes, moveNodes and liftNodes, complementing insertNodes. An explicit select: true moves the caret to the result even with an explicit at. Insertion and splitting select by default when at is omitted; moving retains its existing selection-following behavior by default. select: false prevents explicit reselection while operations still transform the existing selection.

    insertText preserves a null selection by default; use select: true to create a caret after inserting into an unfocused document.

  • #6277 3d13180 Thanks @dylans! - Add ignore to Text.equals options to exclude selected top-level properties from comparison, independently of the existing loose option.

Don't miss a new slate release

NewReleases is sending notifications on new releases.