add history plugin to collab
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user