Minor Changes
-
#6268
1e9e7e1Thanks @dylans! - AddEditor.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, andisWordCharacterlets you define your own word characters.ReactEditor.getWordalso includes text an input method is still composing.The
'word'unit (word deletion, word movement, andEditor.before/after/positions) now usesIntl.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.