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:

ParameterTypeDescription
$stringstring

Returns: Text — The created Text instance.