github ianstormtaylor/slate slate-react@0.136.0

latest release: slate@0.136.0
3 hours ago

Minor Changes

  • #6268 1e9e7e1 Thanks @dylans! - Add Editor.word, which returns the range of the word around a point within its block. Words can cross mark changes and inline links but stop at voids, and isWordCharacter lets you define your own word characters. ReactEditor.getWord also includes text an input method is still composing.

    The 'word' unit (word deletion, word movement, and Editor.before/after/positions) now uses Intl.Segmenter, where available, to split runs of word characters. Chinese, Japanese and Thai text without spaces now deletes and moves one word at a time instead of a whole phrase. Text with spaces between words is unaffected.

Don't miss a new slate release

NewReleases is sending notifications on new releases.