Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14462

Vanessac86d401911e8
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 1e7ac130ec..f153119c8c 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");
}