Skip to content

createYjsEditorBridge

createYjsEditorBridge<PublicKey>(source, options?): Promise<YjsEditorBridge>

Defined in: yjs/src/editor.ts:47

Bind an editor to an already-open Peerborne document. Local mirror updates enter source.change() before mutating the authoritative document, preserving delta capture, authorization, encryption and publication. The mirror writes under an actor the source reserves for its signer. Remote updates do not echo. After a write failure, recreate the bridge from authoritative state. Presence/awareness transport is not provided.

PublicKey

YjsEditorSource<PublicKey>

string

(error) => void

Promise<YjsEditorBridge>