fix y.js bug

This commit is contained in:
Philipp Kühn 2020-12-08 18:08:39 +01:00
parent 4142637921
commit d6e1838f99
4 changed files with 8 additions and 10 deletions

View File

@ -8,7 +8,6 @@
import Collaboration from '@tiptap/extension-collaboration'
import { Editor, EditorContent } from '@tiptap/vue-starter-kit'
import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text'
import * as Y from 'yjs'
import { WebsocketProvider } from 'y-websocket'
@ -32,13 +31,12 @@ export default {
this.editor = new Editor({
extensions: [
Document.extend({
content: 'paper paragraph',
content: 'paper',
}),
Paragraph,
Text,
Collaboration.configure({
provider,
}),
Text,
Paper,
],
})

View File

@ -25,6 +25,6 @@
"@tiptap/core": "^2.0.0-alpha.6"
},
"dependencies": {
"y-prosemirror": "^1.0.0"
"y-prosemirror": "^1.0.3"
}
}

View File

@ -25,6 +25,6 @@
"@tiptap/core": "^2.0.0-alpha.6"
},
"dependencies": {
"y-prosemirror": "^1.0.0"
"y-prosemirror": "^1.0.3"
}
}

View File

@ -15190,10 +15190,10 @@ y-leveldb@^0.1.0:
level "^6.0.1"
lib0 "^0.2.31"
y-prosemirror@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.0.0.tgz#a3d0a36726355979a8e88814c40851851e5bf241"
integrity sha512-7jC45Z3edI7zU1zFetfwPl8262THmJKq21wA8cQUbS37iHhMw9KwpcxXgYjHIBCSryTyWNtHrM8h489bHFDb7A==
y-prosemirror@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.0.3.tgz#89a3b1948aab5b59f3ebc4403eab2203f17f56cd"
integrity sha512-I1xyz5kpjtIAVmEFjQxrJ+5ShvE+wkeyQW7OnBrhTK4t2CeNOltWcZ2Fr33UdJ3D9RzH/KR9Am2jYk+0V2t36A==
dependencies:
lib0 "^0.2.34"