EditorState.wordAt method
EditorState › wordAt
Official
Find the word at the given position.Signature:
wordAt(pos: number): null | SelectionRangeParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | number | The position. |
Returns: null | SelectionRange — The word range, or null if no word is found.