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.
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 views.
Destroy the editor.
Get attributes of the currently selected node or mark.
Get the document as HTML.
Get the document as JSON.
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
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
Unregister a ProseMirror plugin.
The plugins name
The new editor state or undefined if the editor is destroyed
The editor is considered initialized after the
createevent has been emitted.