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/12294

Vanessaf52a7b703f22
diff --git a/app/src/protyle/util/clear.ts b/app/src/protyle/util/clear.ts
index a805981acd..4af67c02f3 100644
--- a/app/src/protyle/util/clear.ts
+++ b/app/src/protyle/util/clear.ts
@@ -9,12 +9,11 @@ export const clearBlockElement = (element: Element) => {
element.querySelector(".protyle-attr--refcount")?.remove();
element.removeAttribute("custom-avs");
element.removeAttribute("av-names");
- debugger
element.getAttributeNames().forEach(attr => {
if (attr.startsWith("custom-sy-av-s-text-")) {
element.removeAttribute(attr);
}
- })
+ });
};
export const clearSelect = (types: ("av" | "img" | "cell" | "row" | "galleryItem")[], element: Element) => {