Skip to content

Commit

Permalink
fix: update cached image node
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Feb 8, 2021
1 parent 1f4a90b commit 3859006
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/plugins/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3859006

Please sign in to comment.