Setup CRDT for CodeMirror Editor.
VeltProvider
to enable authentication and collaboration features. See Velt Setup Docs for details.
editorId
so their providers, content, and cursors stay isolated, enabling multiple editor support.
EditorState
that uses the Yjs text, awareness, and undo manager from the store. Mount an EditorView
when ready.
editorId
per editor instance.yCollab
.EditorView
and store on unmount to avoid leaks.editorId
and users are authenticated.Uint8Array | number[]
.
Promise<VeltCodeMirrorStore | null>
Store<string>
that manages document state and synchronization.
Store<string>
Y.Doc
Y.Text | null
Awareness
Y.UndoManager
void