R
fn

bindCrdt

tested

Wire a {@link CrdtProvider} to an {@link Editor}: local transactions flow into the CRDT, and remote ops are reflected back as a single history-bypassing `setDoc` transaction. The provider's `onLocalOps`/`applyUpdate` are connected to a transport by the caller.

Signature

ts
export function bindCrdt(editor: Editor, provider: CrdtProvider): CrdtBinding{ ... }

Parameters

ParameterTypeDescription
editorEditor
providerCrdtProvider

Returns

CrdtBinding