EditorState.toJSON method
EditorState › toJSON
Official
Convert this state to a JSON-serializable object.Signature:
toJSON(fields?: Record<string, StateField<unknown>> | undefined): unknownParameters:
| Parameter | Type | Description |
|---|---|---|
| fields? | Record<string, StateField<unknown>> | undefined | Optional fields to serialize. |
Returns: unknown — The JSON representation.