Optionaloptions: Partial<EditorOptions>The editor is considered initialized after the create event has been emitted.
An object of all registered commands.
Check if the editor is already destroyed.
Returns whether the editor is editable.
Check if there is no content.
Returns the editor state.
Returns the editor storage.
Returns the editor state.
Optionalattributes: { [key: string]: any }Optionalattributes: { [key: string]: any }Check if a command or a command chain can be executed. Without executing it.
Create a command chain to call multiple commands at once.
Creates all node and mark views.
Destroy the editor.
Get attributes of the currently selected node or mark.
Get the document as HTML.
Get the document as JSON.
Get the document as text.
Optionaloptions: { blockSeparator?: string; textSerializers?: Record<string, TextSerializer> }Returns if the currently selected node or mark is active.
Name of the node or mark
Optionalattributes: {}Attributes of the node or mark
Returns if the currently selected node or mark is active.
Attributes of the node or mark
Attach the editor to the DOM, creating a new editor view.
Optionalfn: CallbackFunction<EditorEvents, EventName>Prepend class name to element.
Register a ProseMirror plugin.
A ProseMirror plugin
OptionalhandlePlugins: (newPlugin: Plugin, plugins: Plugin<any>[]) => Plugin<any>[]Control how to merge the plugin into the existing plugins.
The new editor state
Update editable state of the editor.
OptionalemitUpdate: booleanUpdate editor options.
Optionaloptions: Partial<EditorOptions>A list of options
Remove the editor from the DOM, but still allow remounting at a different point in time
Unregister a ProseMirror plugin.
The plugins name
The new editor state or undefined if the editor is destroyed
A unique ID for this editor instance.