A string that uniquely identifies this ProseMirror instance.
The ProseMirror EditorView.
The plugin to track the dirty state of the editor.
Whether this is a collaborative editor.
Optional
options: { Additional options.
A document associated with this editor.
Private
#isThe plugin to track the dirty state of the editor.
Static
Private
#editorsA list of active editor instances by their UUIDs.
Protected
_onProtected
Handle new editing steps supplied by the server.
The offset into the history, representing the point at which it was last truncated.
The entire edit history.
Protected
_disableProtected
_resyncProtected
_updateProtected
_handleStatic
createCreate a ProseMirror editor instance.
An HTML element to mount the editor to.
Optional
content: string = ""Content to populate the editor with.
Optional
options: { Additional options to configure the ProseMirror instance.
A string to uniquely identify this ProseMirror instance. Ignored for a collaborative editor.
A Document whose content is being edited. Required for collaborative editing and relative UUID generation.
The field within the Document that is being edited. Required for collaborative editing.
Plugins to include with the editor.
Whether to generate relative UUID links to Documents that are dropped on the editor.
Whether to enable collaborative editing for this editor.
Static
_activateStatic
Protected
_createProtected
Create an EditorView with collaborative editing enabled.
The ProseMirror instance UUID.
An HTML element to mount the editor view to.
The ProseMirror editor state.
The editor plugins to load.
Static
Protected
_createProtected
Create a plain EditorView without collaborative editing.
An HTML element to mount the editor view to.
The ProseMirror editor state.
The editor plugins to load.
Static
Protected
_onProtected
Handle new editing steps supplied by the server.
The UUID that uniquely identifies the ProseMirror instance.
The offset into the history, representing the point at which it was last truncated.
The entire edit history.
Static
Protected
_onStatic
Protected
_onStatic
Protected
_on
A class responsible for managing state and collaborative editing of a single ProseMirror instance.