Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/9156

Vanessa2e0b8945cf53
diff --git a/app/src/config/about.ts b/app/src/config/about.ts
index 3103fd099d..75d6c515b1 100644
--- a/app/src/config/about.ts
+++ b/app/src/config/about.ts
@@ -148,7 +148,7 @@ export const about = {
<button id="checkUpdateBtn" class="b3-button b3-button--outline fn__block">
<svg><use xlink:href="#iconRefresh"></use></svg>${window.siyuan.languages.checkUpdate}
</button>
- <div class="fn__hr${isBrowser() ? "" : " fn__none"}"></div>
+ <div class="fn__hr${(isInIOS() || isInAndroid()) ? "" : " fn__none"}"></div>
<button id="menuSafeQuit" class="b3-button b3-button--outline fn__block${(isInIOS() || isInAndroid()) ? "" : " fn__none"}">
<svg><use xlink:href="#iconQuit"></use></svg>${window.siyuan.languages.safeQuit}
</button>
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 22a5ec4583..b5704c8886 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -364,8 +364,8 @@ export class Toolbar {
}
}
contents.childNodes.forEach((item: HTMLElement, index) => {
- if (item.nodeType !== 3 && item.tagName !== "BR") {
- const types = item.getAttribute("data-type").split(" ");
+ if (item.nodeType !== 3 && item.tagName !== "BR" && item.tagName !== "IMG") {
+ const types = (item.getAttribute("data-type") || "").split(" ");
if (type === "clear") {
for (let i = 0; i < types.length; i++) {
if (textObj && textObj.type === "text") {