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