An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:iphone: 文档中设置表情无法即使更新
Vanessa78edaee29561
diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.tsindex a80c8bb37e..330a622ce3 100644--- a/app/src/emoji/index.ts+++ b/app/src/emoji/index.ts@@ -201,9 +201,9 @@ export const openEmojiPanel = (id: string, target: HTMLElement, isNotebook = fal<input class="b3-form__icon-input b3-text-field fn__block" placeholder="${window.siyuan.languages.search}"></label><span class="fn__space"></span>- <span class="block__icon fn__flex-center b3-tooltips b3-tooltips__sw" style="opacity: 1" aria-label="${window.siyuan.languages.random}"><svg><use xlink:href="#iconRefresh"></use></svg></span>+ <span class="block__icon block__icon--show fn__flex-center b3-tooltips b3-tooltips__sw" aria-label="${window.siyuan.languages.random}"><svg><use xlink:href="#iconRefresh"></use></svg></span><span class="fn__space"></span>- <span class="block__icon fn__flex-center b3-tooltips b3-tooltips__sw" style="opacity: 1" aria-label="${window.siyuan.languages.remove}"><svg><use xlink:href="#iconTrashcan"></use></svg></span>+ <span class="block__icon block__icon--show fn__flex-center b3-tooltips b3-tooltips__sw" aria-label="${window.siyuan.languages.remove}"><svg><use xlink:href="#iconTrashcan"></use></svg></span><span class="fn__space"></span></div><div class="emojis__panel">${filterEmoji()}</div>diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex 23b2c0ff55..5b6623fbce 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -442,18 +442,20 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b}});let nodeAttrHTML = bookmarkHTML + nameHTML + aliasHTML + memoHTML;- if (protyle.block.rootID === operation.id && protyle.title) {+ if (protyle.block.rootID === operation.id) {// 文档- const refElement = protyle.title.element.querySelector(".protyle-attr--refcount");- if (refElement) {- nodeAttrHTML += refElement.outerHTML;- }- if (data.new["custom-riff-decks"]) {- protyle.title.element.setAttribute("custom-riff-decks", data.new["custom-riff-decks"]);- } else {- protyle.title.element.removeAttribute("custom-riff-decks");+ if (protyle.title) {+ const refElement = protyle.title.element.querySelector(".protyle-attr--refcount");+ if (refElement) {+ nodeAttrHTML += refElement.outerHTML;+ }+ if (data.new["custom-riff-decks"]) {+ protyle.title.element.setAttribute("custom-riff-decks", data.new["custom-riff-decks"]);+ } else {+ protyle.title.element.removeAttribute("custom-riff-decks");+ }+ protyle.title.element.querySelector(".protyle-attr").innerHTML = nodeAttrHTML;}- protyle.title.element.querySelector(".protyle-attr").innerHTML = nodeAttrHTML;protyle.wysiwyg.renderCustom(attrsResult);if (data.new.icon !== data.old.icon) {/// #if MOBILE