Function EditableContent.wordBounds

get word bounds by position

TextRange wordBounds(
  TextPosition pos
);