Skip to content

EditorState.charCategorizer method

EditorState › charCategorizer

Official

Return a function that can categorize strings into Word, Space, or Other.

Signature:

charCategorizer(at: number): (char: string) => CharCategory

Parameters:

Parameter Type Description
at number The position for context.

Returns: (char: string) => CharCategoryThe categorizer function.