prosekit/extensions/yjs
YjsCursorOptions
Options for y-prosemirror
's yCursorPlugin
.
awareness
Type:
Awareness
YjsOptions
awareness
The Awareness instance.
Type:
Awareness
cursor
Options for
y-prosemirror
'syCursorPlugin
.Type:
{}
doc
The Yjs instance handles the state of shared data.
Type:
Doc
fragment
The Yjs XmlFragment to use. If not provided,
doc.getXmlFragment('prosemirror')
will be used.Type:
YXmlFragment
sync
Options for
y-prosemirror
'sySyncPlugin
.Type:
YSyncOpts
undo
Options for the
y-prosemirror
'syUndoPlugin
.Type:
{}
YjsSyncOptions
Options for y-prosemirror
's ySyncPlugin
.
fragment
Type:
YXmlFragment
YjsUndoOptions
Options for the y-prosemirror
's yUndoPlugin
.
YjsCursorPluginOptions
Options for y-prosemirror
's yCursorPlugin
.
Type: NonNullable<Parameters<typeof yCursorPlugin>[1]>
YjsSyncPluginOptions
Options for y-prosemirror
's ySyncPlugin
.
Type: NonNullable<Parameters<typeof ySyncPlugin>[1]>
YjsUndoPluginOptions
Options for the y-prosemirror
's yUndoPlugin
.
Type: NonNullable<Parameters<typeof originalYUndoPlugin>[0]>
defineYjs
function defineYjs(options: YjsOptions): YjsExtension
defineYjsCommands
function defineYjsCommands(): YjsCommandsExtension
defineYjsCursorPlugin
function defineYjsCursorPlugin(options: YjsCursorOptions): PlainExtension
defineYjsKeymap
function defineYjsKeymap(): PlainExtension
defineYjsSyncPlugin
function defineYjsSyncPlugin(options: YjsSyncOptions): PlainExtension
defineYjsUndoPlugin
function defineYjsUndoPlugin(options: YjsUndoOptions): PlainExtension