Skip to content

Commit

Permalink
fix: Add content button updates
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed May 27, 2024
1 parent 2eb22bc commit abfd753
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/src/lib/editor/extensions/element/node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ const Element = BaseElement.extend<
}

if (newNode.type.name !== "element") return false;
if (Boolean(newNode.content.size) !== Boolean(node.content.size)) return false;

view?.onUpdate?.(newNode);

Expand Down

0 comments on commit abfd753

Please sign in to comment.