add collaborative editing guide

This commit is contained in:
Hans Pagel
2020-11-27 17:23:04 +01:00
parent bfc6a45292
commit 996c29bcf7
6 changed files with 285 additions and 15 deletions

View File

@@ -0,0 +1,14 @@
/*
import { Server } from '@hocuspocus/server'
import { LevelDB } from '@hocuspocus/leveldb'
const server = Server.configure({
port: 1234,
persistence: new LevelDB({
path: './database',
}),
})
server.listen()
*/

View File

@@ -41,7 +41,6 @@ export default {
Paragraph,
Text,
Collaboration.configure({
provider: this.provider,
type: this.type,
}),
],

View File

@@ -42,7 +42,6 @@ export default {
Paragraph,
Text,
Collaboration.configure({
provider: this.provider,
type: this.type,
}),
CollaborationCursor.configure({