Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17725

Vanessaefb4955209cc
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index a15e0dbb70..af5cc18cf2 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -689,6 +689,7 @@ export const initKeyboardToolbar = () => {
const type = buttonElement.getAttribute("data-type");
// appearance
if (["clear", "style2", "style4", "color", "backgroundColor", "fontSize", "style1"].includes(type)) {
+ preventRender = true;
const nodeElements = getFontNodeElements(protyle);
const itemElement = buttonElement.firstElementChild as HTMLElement;
if (type === "style1") {
@@ -702,6 +703,9 @@ export const initKeyboardToolbar = () => {
} else {
fontEvent(protyle, nodeElements, type);
}
+ setTimeout(() => {
+ preventRender = false;
+ }, 1000);
}
event.preventDefault();