Merge branch 'main' of github.com:ueberdosis/tiptap-next

This commit is contained in:
Hans Pagel
2021-01-29 15:15:41 +01:00
102 changed files with 587 additions and 118 deletions

View File

@@ -155,16 +155,16 @@ const provider = new WebsocketProvider('ws://127.0.0.1:1234', 'example-document'
const editor = new Editor({
extensions: [
// …
Collaboration.configure({
document: ydoc,
}),
// Register the collaboration cursor extension
CollaborationCursor.configure({
provider: provider,
name: 'Cyndi Lauper',
color: '#f783ac',
}),
Collaboration.configure({
document: ydoc,
}),
// …
],
})
```