Skip to content

StateFieldSpec.fromJSON method

StateFieldSpec › fromJSON

A function that deserializes the JSON representation of this field's content.

Signature:

fromJSON(json: unknown, state: EditorState): Value

Parameters:

ParameterTypeDescription
jsonunknownThe JSON representation of the value.
stateEditorStateThe state to deserialize the value for.

Returns: ValueThe deserialized value.