The content of the editor (HTML, JSON, or a JSON array)
OptionalcoreThe editor's core extension options
Whether the editor is editable
The editor's props
The element to bind the editor to:
Element is passed, the editor will be mounted appended to that elementnull is passed, the editor will not be mounted automaticallymount property is passed, the editor will be mounted to that elementIf true, the editor will emit the contentError event if invalid content is
encountered but enableContentCheck is false. This lets you preserve the
invalid editor content while still showing a warning or error message to
the user.
If true, the editor will check the content for errors on initialization.
Emitting the contentError event if the content is invalid.
Which can be used to show a warning or error message to the user.
OptionalenableDetermines whether core extensions are enabled.
If set to false, all core extensions will be disabled.
To disable specific core extensions, provide an object where the keys are the extension names and the values are false.
Extensions not listed in the object will remain enabled.
Whether to enable input rules behavior
Whether to enable paste rules behavior
The extensions to use
Whether to inject base CSS styles
A nonce to use for CSP while injecting styles
Called before the editor is constructed.
Called on blur events.
Called when the editor encounters an error while parsing the content.
Only enabled if enableContentCheck is true.
Called after the editor is constructed.
Called when content is deleted from the editor.
Called when the editor is destroyed.
Called when content is dropped into the editor.
Called on focus events.
Called when the editor is mounted.
Called when content is pasted into the editor.
Called when the editor's selection is updated.
Called after a transaction is applied to the editor.
Called when the editor is unmounted.
Called when the editor's content is updated.
The editor's content parser options
The editor's initial focus position