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

Vanessaeb849e725aab
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index b5ec432b52..7623a284d0 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1021,9 +1021,6 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
element.style.maxWidth = "none";
const textElements = element.querySelectorAll("textarea");
textElements[0].addEventListener("input", (event: InputEvent) => {
- if (event.isComposing) {
- return;
- }
const value = (event.target as HTMLInputElement).value.replace(/\n|\r\n|\r|\u2028|\u2029/g, "");
imgElement.setAttribute("src", value);
imgElement.setAttribute("data-src", value);