diff --git a/examples/Components/Routes/Collaboration/index.vue b/examples/Components/Routes/Collaboration/index.vue index 293541e54..a3b8e0935 100644 --- a/examples/Components/Routes/Collaboration/index.vue +++ b/examples/Components/Routes/Collaboration/index.vue @@ -51,7 +51,7 @@ export default { mounted() { this.socket = io('wss://tiptap-sockets.glitch.me') .on('init', data => this.onInit(data)) - .on('update', data => this.editor.extensions.options.collaboration.onUpdate(data)) + .on('update', data => this.editor.extensions.options.collaboration.update(data)) }, beforeDestroy() { diff --git a/packages/tiptap-extensions/src/extensions/Collaboration.js b/packages/tiptap-extensions/src/extensions/Collaboration.js index 47250dd46..f0f714edc 100644 --- a/packages/tiptap-extensions/src/extensions/Collaboration.js +++ b/packages/tiptap-extensions/src/extensions/Collaboration.js @@ -26,7 +26,7 @@ export default class CollaborationExtension extends Extension { clientID: Math.floor(Math.random() * 0xFFFFFFFF), debounce: 250, onSendable: () => {}, - onUpdate: ({ steps, version }) => { + update: ({ steps, version }) => { const { state, view, schema } = this.editor if (getVersion(state) > version) {