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/9850

Vanessaecfce6b9afa2
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index 8b23c422ce..2196bafd0f 100644
--- a/app/src/protyle/header/Background.ts
+++ b/app/src/protyle/header/Background.ts
@@ -331,7 +331,7 @@ export class Background {
title: window.siyuan.languages.link,
width: isMobile() ? "92vw" : "520px",
content: `<div class="b3-dialog__content">
- <input class="b3-text-field fn__block">
+ <input class="b3-text-field fn__block" value="${this.imgElement.src.startsWith("data:") ? "" : this.imgElement.getAttribute("src")}">
</div>
<div class="b3-dialog__action">
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button><div class="fn__space"></div>