mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 09:18:49 +01:00
📱 文档中设置表情无法即使更新
This commit is contained in:
parent
1917857b60
commit
78edaee295
2 changed files with 14 additions and 12 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 (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;
|
||||
}
|
||||
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.wysiwyg.renderCustom(attrsResult);
|
||||
if (data.new.icon !== data.old.icon) {
|
||||
/// #if MOBILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue