From 385900640defe2423fa5eb9e0a752fb665a7e15f Mon Sep 17 00:00:00 2001 From: sibiraj-s Date: Mon, 8 Feb 2021 16:10:04 +0530 Subject: [PATCH] fix: update cached image node --- src/lib/plugins/image.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/plugins/image.ts b/src/lib/plugins/image.ts index e2642812..9a378168 100644 --- a/src/lib/plugins/image.ts +++ b/src/lib/plugins/image.ts @@ -76,6 +76,12 @@ class ImageRezieView implements NodeView { } update(node: ProseMirrorNode): boolean { + if (node.type !== this.node.type) { + return false; + } + + this.node = node; + const changed = this.computeChanges(this.node.attrs, node.attrs); if (changed) { this.updating = true;