From c86d401911e82a1b1619fdb630709314a17278f1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 27 Mar 2025 23:24:11 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14462 --- app/src/protyle/wysiwyg/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 1e7ac130e..f153119c8 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -2195,6 +2195,9 @@ export class WYSIWYG { this.setEmptyOutline(protyle, event.target); const tableElement = hasClosestByClassName(event.target, "table"); this.element.querySelectorAll(".table").forEach(item => { + if (item.tagName !== "DIV") { + return; + } if (!tableElement || !item.isSameNode(tableElement)) { item.querySelector(".table__select").removeAttribute("style"); }