diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.ts
index a80c8bb37..330a622ce 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
-
+
-
+
${filterEmoji()}
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 23b2c0ff5..5b6623fbc 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 (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