Skip to content

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

:iphone:

Vanessaa01523dc9879
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts
index d2721b86ae..82e41174ab 100644
--- a/app/src/protyle/wysiwyg/remove.ts
+++ b/app/src/protyle/wysiwyg/remove.ts
@@ -193,6 +193,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang
}
hideElements(["util"], protyle);
+ /// #if !MOBILE
if (!sideElement) {
const backlinkElement = hasClosestByClassName(protyle.element, "sy__backlink", true);
if (backlinkElement) {
@@ -211,6 +212,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang
}
}
}
+ /// #endif
return;
}
const blockType = blockElement.getAttribute("data-type");