Skip to content

StateFieldSpec.toJSON?

StateFieldSpec › toJSON?

Type: (value: Value, state: EditorState) => unknown

A function used to serialize this field's content to JSON. Only necessary when this field is included in the argument to EditorState.toJSON.