Skip to content

Commit 75c9a70

Browse files
committed
docs: update docs
1 parent 27494f6 commit 75c9a70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/pages/docs/collaboration/comments.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ BlockNote comes with several built-in ThreadStore implementations:
4545
The `YjsThreadStore` provides direct Yjs-based storage for comments, storing thread data directly in the Yjs document. This implementation is ideal for simple collaborative setups where all users have write access to the document.
4646

4747
```tsx
48-
import { YjsThreadStore } from "@blocknote/core";
48+
import { YjsThreadStore } from "@blocknote/core/comments";
4949

5050
const threadStore = new YjsThreadStore(
5151
userId, // The active user's ID
@@ -63,7 +63,7 @@ The `RESTYjsThreadStore` combines Yjs storage with a REST API backend, providing
6363
In this implementation, data is written to the Yjs document via a REST API which can handle access control. Data is still retrieved from the Yjs document directly (after it's been updated by the REST API), this way all comment information automatically syncs between clients using the existing collaboration provider.
6464

6565
```tsx
66-
import { RESTYjsThreadStore, DefaultThreadStoreAuth } from "@blocknote/core";
66+
import { RESTYjsThreadStore, DefaultThreadStoreAuth } from "@blocknote/core/comments";
6767

6868
const threadStore = new RESTYjsThreadStore(
6969
"https://api.example.com/comments", // Base URL for the REST API
@@ -84,7 +84,7 @@ _Note: Because writes are executed via a REST API, the `RESTYjsThreadStore` is n
8484
The `TiptapThreadStore` integrates with Tiptap's collaboration provider for comment management. This implementation is designed specifically for use with Tiptap's collaborative editing features.
8585

8686
```tsx
87-
import { TiptapThreadStore, DefaultThreadStoreAuth } from "@blocknote/core";
87+
import { TiptapThreadStore, DefaultThreadStoreAuth } from "@blocknote/core/comments";
8888
import { TiptapCollabProvider } from "@hocuspocus/provider";
8989

9090
// Create a TiptapCollabProvider (you probably have this already)

0 commit comments

Comments
 (0)