StateField.init method
StateField › init
Official
Returns an extension that enables this field and overrides the way it is initialized.Signature:
init(create: (state: EditorState) => Value): ExtensionParameters:
| Parameter | Type | Description |
|---|---|---|
| create | (state: EditorState) => Value | The initializer function. |
Returns: Extension — The extension.