add collaborative editing guide
This commit is contained in:
14
docs/src/demos/Examples/CollaborativeEditingWs/server.js
Normal file
14
docs/src/demos/Examples/CollaborativeEditingWs/server.js
Normal 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()
|
||||
*/
|
||||
@@ -41,7 +41,6 @@ export default {
|
||||
Paragraph,
|
||||
Text,
|
||||
Collaboration.configure({
|
||||
provider: this.provider,
|
||||
type: this.type,
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -42,7 +42,6 @@ export default {
|
||||
Paragraph,
|
||||
Text,
|
||||
Collaboration.configure({
|
||||
provider: this.provider,
|
||||
type: this.type,
|
||||
}),
|
||||
CollaborationCursor.configure({
|
||||
|
||||
Reference in New Issue
Block a user