change order of CollaborationCursor for now

This commit is contained in:
Philipp Kühn 2021-01-29 09:38:42 +01:00
parent 90c6f77063
commit 2b97d4b67b
3 changed files with 10 additions and 10 deletions

View File

@ -79,9 +79,6 @@ export default {
Highlight,
TaskList,
CustomTaskItem,
Collaboration.configure({
document: ydoc,
}),
CollaborationCursor.configure({
provider: this.provider,
user: this.currentUser,
@ -89,6 +86,9 @@ export default {
this.users = users
},
}),
Collaboration.configure({
document: ydoc,
}),
],
})

View File

@ -33,9 +33,6 @@ export default {
Document,
Paragraph,
Text,
Collaboration.configure({
document: ydoc,
}),
CollaborationCursor.configure({
provider: this.provider,
user: {
@ -43,6 +40,9 @@ export default {
color: '#f783ac',
},
}),
Collaboration.configure({
document: ydoc,
}),
],
})
},

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,
}),
// …
],
})
```