fix y.js bug
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
import Collaboration from '@tiptap/extension-collaboration'
|
import Collaboration from '@tiptap/extension-collaboration'
|
||||||
import { Editor, EditorContent } from '@tiptap/vue-starter-kit'
|
import { Editor, EditorContent } from '@tiptap/vue-starter-kit'
|
||||||
import Document from '@tiptap/extension-document'
|
import Document from '@tiptap/extension-document'
|
||||||
import Paragraph from '@tiptap/extension-paragraph'
|
|
||||||
import Text from '@tiptap/extension-text'
|
import Text from '@tiptap/extension-text'
|
||||||
import * as Y from 'yjs'
|
import * as Y from 'yjs'
|
||||||
import { WebsocketProvider } from 'y-websocket'
|
import { WebsocketProvider } from 'y-websocket'
|
||||||
@@ -32,13 +31,12 @@ export default {
|
|||||||
this.editor = new Editor({
|
this.editor = new Editor({
|
||||||
extensions: [
|
extensions: [
|
||||||
Document.extend({
|
Document.extend({
|
||||||
content: 'paper paragraph',
|
content: 'paper',
|
||||||
}),
|
}),
|
||||||
Paragraph,
|
|
||||||
Text,
|
|
||||||
Collaboration.configure({
|
Collaboration.configure({
|
||||||
provider,
|
provider,
|
||||||
}),
|
}),
|
||||||
|
Text,
|
||||||
Paper,
|
Paper,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -25,6 +25,6 @@
|
|||||||
"@tiptap/core": "^2.0.0-alpha.6"
|
"@tiptap/core": "^2.0.0-alpha.6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"y-prosemirror": "^1.0.0"
|
"y-prosemirror": "^1.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,6 @@
|
|||||||
"@tiptap/core": "^2.0.0-alpha.6"
|
"@tiptap/core": "^2.0.0-alpha.6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"y-prosemirror": "^1.0.0"
|
"y-prosemirror": "^1.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15190,10 +15190,10 @@ y-leveldb@^0.1.0:
|
|||||||
level "^6.0.1"
|
level "^6.0.1"
|
||||||
lib0 "^0.2.31"
|
lib0 "^0.2.31"
|
||||||
|
|
||||||
y-prosemirror@^1.0.0:
|
y-prosemirror@^1.0.3:
|
||||||
version "1.0.0"
|
version "1.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.0.0.tgz#a3d0a36726355979a8e88814c40851851e5bf241"
|
resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.0.3.tgz#89a3b1948aab5b59f3ebc4403eab2203f17f56cd"
|
||||||
integrity sha512-7jC45Z3edI7zU1zFetfwPl8262THmJKq21wA8cQUbS37iHhMw9KwpcxXgYjHIBCSryTyWNtHrM8h489bHFDb7A==
|
integrity sha512-I1xyz5kpjtIAVmEFjQxrJ+5ShvE+wkeyQW7OnBrhTK4t2CeNOltWcZ2Fr33UdJ3D9RzH/KR9Am2jYk+0V2t36A==
|
||||||
dependencies:
|
dependencies:
|
||||||
lib0 "^0.2.34"
|
lib0 "^0.2.34"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user