A string that uniquely identifies this ProseMirror instance.
The ProseMirror EditorView.
Optionaloptions: { collaborate?: boolean; document?: any } = {}Additional options.
Optionalcollaborate?: booleanWhether this is a collaborative editor.
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_ProtectedDisable source code editing if the user was editing it when new steps arrived.
Protected_ProtectedHandle an autosave update for an already-open editor.
The updated editor contents.
Protected_ProtectedHandle 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_ProtectedThe state of this ProseMirror editor has fallen too far behind the central authority's and must be re-synced.
Protected_ProtectedHandle users joining or leaving collaborative editing.
The IDs of users currently editing (including ourselves).
Static_InternalListen for ProseMirror collaboration events.
The open websocket.
StaticbuildInstantiate a list of default editor plugins.
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_ProtectedCreate 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_ProtectedCreate 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_ProtectedUpdate client state when the editor contents are autosaved server-side.
The UUID that uniquely identifies the ProseMirror instance.
The updated editor contents.
Protected Static_ProtectedHandle 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_ProtectedOur 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_ProtectedHandle 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.