Skip to content

EditorState.toText method

EditorState › toText

Official

Using the state's line separator, create a Text instance from the given string.

Signature:

toText(string: string): Text

Parameters:

Parameter Type Description
string string The string to convert.

Returns: TextThe created Text instance.