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.
Optionaloptions: { document?: any } = {}Additional options.
Optionaldocument?: anyA document associated with this editor.
Retire this editor instance and clean up.
Have the contents of the editor been edited by the user?
Protected_disableProtectedDisable source code editing if the user was editing it when new steps arrived.
Protected_handleProtectedHandle an autosave update for an already-open editor.
The updated editor contents.
Protected_onProtectedHandle 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_resyncProtectedThe state of this ProseMirror editor has fallen too far behind the central authority's and must be re-synced.
Protected_updateProtectedHandle users joining or leaving collaborative editing.
The IDs of users currently editing (including ourselves).
Static_activateInternalListen for ProseMirror collaboration events.
The open websocket.
StaticcreateCreate a ProseMirror editor instance.
An HTML element to mount the editor to.
Optionalcontent: string = ""Content to populate the editor with.
Optionaloptions: {Additional options to configure the ProseMirror instance.
Optionalcollaborate?: booleanWhether collaborative editing enabled.
Optionaldocument?: anyA Document whose content is being edited. Required for collaborative editing and relative UUID generation.
OptionalfieldName?: stringThe field within the Document that is being edited. Required for collaborative editing.
Optionalplugins?: Record<string, Plugin>Plugins to include with the editor.
Optionalprops?: objectAdditional ProseMirror editor properties.
OptionalrelativeLinks?: booleanWhether to generate relative UUID links to Documents that are dropped on the editor.
Optionaluuid?: stringA string to uniquely identify this ProseMirror instance. Ignored for a collaborative editor.
Protected Static_createProtectedCreate an EditorView with collaborative editing enabled.
The ProseMirror instance UUID.
An HTML element to mount the editor view to.
The ProseMirror editor state.
The ProseMirror editor plugins to load.
Additional ProseMirror editor properties.
Protected Static_createProtectedCreate a plain EditorView without collaborative editing.
An HTML element to mount the editor view to.
The ProseMirror editor state.
The ProseMirror editor plugins to load.
Additional ProseMirror editor properties.
Protected Static_onProtectedUpdate client state when the editor contents are autosaved server-side.
The UUID that uniquely identifies the ProseMirror instance.
The updated editor contents.
Protected Static_onProtectedHandle 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.
Protected Static_onProtectedOur client is too far behind the central authority's state and must be re-synced.
The UUID that uniquely identifies the ProseMirror instance.
Protected Static_onProtectedHandle users joining or leaving collaborative editing.
The UUID that uniquely identifies the ProseMirror instance.
The IDs of the users editing (including ourselves).
A class responsible for managing state and collaborative editing of a single ProseMirror instance.