Skip to content

EditorState.wordAt method

EditorState › wordAt

Official

Find the word at the given position.

Signature:

wordAt(pos: number): null | SelectionRange

Parameters:

Parameter Type Description
pos number The position.

Returns: null | SelectionRangeThe word range, or null if no word is found.