From abfd7530b69b93a2c815b7fdb0f6a16d5bdc1338 Mon Sep 17 00:00:00 2001 From: Arek Nawo Date: Mon, 27 May 2024 11:33:14 +0200 Subject: [PATCH] fix: Add content button updates --- apps/web/src/lib/editor/extensions/element/node.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/lib/editor/extensions/element/node.tsx b/apps/web/src/lib/editor/extensions/element/node.tsx index d0594f0f..528b71a8 100644 --- a/apps/web/src/lib/editor/extensions/element/node.tsx +++ b/apps/web/src/lib/editor/extensions/element/node.tsx @@ -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);