Skip to content

StateFieldSpec.create method

StateFieldSpec › create

Creates the initial value for the field when a state is created.

Signature:

create(state: EditorState): Value

Parameters:

ParameterTypeDescription
stateEditorStateThe state to create the value for.

Returns: ValueThe initial value for the field.