add history plugin to collab

This commit is contained in:
Philipp Kühn
2019-05-04 11:04:39 +02:00
parent 3a42fe388b
commit 9a688409fb

View File

@@ -10,7 +10,7 @@
<script> <script>
import io from 'socket.io-client' import io from 'socket.io-client'
import { Editor, EditorContent } from 'tiptap' import { Editor, EditorContent } from 'tiptap'
import { Collaboration } from 'tiptap-extensions' import { History, Collaboration } from 'tiptap-extensions'
export default { export default {
components: { components: {
@@ -36,6 +36,7 @@ export default {
this.editor = new Editor({ this.editor = new Editor({
content: doc, content: doc,
extensions: [ extensions: [
new History(),
new Collaboration({ new Collaboration({
version, version,
debounce: 250, debounce: 250,