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"); }