StateField
A plugin spec may provide a state field (under its
state
property) of this type, which
describes the state it wants to keep. Functions provided here are
always called with the plugin instance as their this
binding.
§Properties
Apply the given transaction to this state field, producing a new
field value. Note that the newState
argument is again a partially
constructed state does not yet contain the state from plugins
coming after this one.
Deserialize the JSON representation of this field. Note that the
state
argument is again a half-initialized state.
Initialize the value of the field. config
will be the object
passed to EditorState.create
. Note
that instance
is a half-initialized state instance, and will
not have values for plugin fields initialized after this one.