Slide 17
Slide 17 text
設定方法
Yjsとwebrtcの設定をして
const doc = new Y.Doc();
const provider = new WebrtcProvider("my-document-id", doc);
ブチ込む!
const editor = useCreateBlockNote({
// ...
collaboration: {
provider,
fragment: doc.getXmlFragment("document-store"),
user: {
name: "My Username",
color: "#ff0000",
},
},
});
17