EditorState.toText method
EditorState › toText
Official
Using the state's line separator, create a Text instance from the given string.Signature:
toText(string: string): TextParameters:
| Parameter | Type | Description |
|---|---|---|
| string | string | The string to convert. |
Returns: Text — The created Text instance.