Skip to content

Commit

Permalink
doc: update collab docs and include changeset.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpnova committed Dec 6, 2024
1 parent b93f662 commit 079b13f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-swans-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-yjs': patch
---

Allow BYO provider instead of plate hocuspocus setup.
7 changes: 5 additions & 2 deletions apps/www/content/docs/collaboration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,18 @@ const editor = createPlateEditor({
YjsPlugin.configure({
options: {
hocuspocusProviderOptions: {
url: "https://hocuspocus.test/hocuspocus",
name: "test",
url: 'https://hocuspocus.test/hocuspocus',
name: 'test',
},
},
}),
],
});
```

As an alternative to allowing plate to create the provider, you may want to pass it yourself.
This can be passed as the `provider` field to `options`.

## Backend

Follow the backend instructions in [Hocuspocus docs](https://tiptap.dev/hocuspocus/getting-started).
Expand Down

0 comments on commit 079b13f

Please sign in to comment.