An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Preserve slash commands when undoing emoji insertion https://github.com/siyuan-note/siyuan/issues/18929
Daniel7bad40502694
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 2cb85ae1e9..5083ce7467 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -880,9 +880,7 @@ ${genHintItemHTML(item)}protyle.toolbar.setInlineMark(protyle, value, "range");return;} else if (value === "emoji") {- range.deleteContents();- range.collapse(false);- focusByRange(range);+ // 保留斜杠命令选区,选择表情时由 insertHTML 作为一个事务替换,确保撤销恢复命令文本this.openEmojiInsertPanel(protyle, range);return;} else if (value.startsWith("style")) {