From 17c58c029be767c8ae7c2c2e1a521e06a0f3f830 Mon Sep 17 00:00:00 2001 From: Brian Hung Date: Sun, 9 Feb 2020 00:32:12 -0800 Subject: [PATCH] Allow extensions to define update behavior. --- packages/tiptap/src/Utils/ComponentView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/tiptap/src/Utils/ComponentView.js b/packages/tiptap/src/Utils/ComponentView.js index 9f4d50a4a..26e6131f5 100644 --- a/packages/tiptap/src/Utils/ComponentView.js +++ b/packages/tiptap/src/Utils/ComponentView.js @@ -44,6 +44,9 @@ export default class ComponentView { if (typeof this.extension.setSelection === 'function') { this.setSelection = this.extension.setSelection } + if (typeof this.extension.update === 'function') { + this.update = this.extension.update + } this.vm = new Component({ parent: this.parent,