Skip to content

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

:bug: Disable document icon picker in publish mode https://github.com/siyuan-note/siyuan/issues/19892

Daniel2a6e839c0cad
diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.ts
index 2f3085a899..b6013866c4 100644
--- a/app/src/emoji/index.ts
+++ b/app/src/emoji/index.ts
@@ -850,6 +850,9 @@ export const openEmojiPanel = (
targetID?: string,
insertRange?: Range,
}) => {
+ if ((type === "doc" || type === "notebook") && (window.siyuan.config.readonly || window.siyuan.isPublish)) {
+ return;
+ }
if (type !== "av") {
window.siyuan.menus.menu.remove();
}