allow to pass a fragment name to the collaboration extension

This commit is contained in:
Hans Pagel
2021-01-11 14:42:12 +01:00
parent 8e5f331345
commit e4801b0cfa
3 changed files with 28 additions and 7 deletions

View File

@@ -20,9 +20,10 @@ yarn add @tiptap/extension-collaboration yjs y-websocket
```
## Settings
| Option | Type | Default | Description |
| -------- | -------- | ------- | ----------------------------- |
| document | `Object` | `null` | An initialized Y.js document. |
| Option | Type | Default | Description |
| -------- | -------- | --------- | ----------------------------------------------------------------------------------------- |
| document | `Object` | `null` | An initialized Y.js document. |
| fragment | `String` | `default` | Name of the Y.js fragment, can be changed to sync multiple fields with one Y.js document. |
## Commands
| Command | Parameters | Description |