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/pull/13927

Vanessa2ea36de32ced
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index a99cd7ec8f..9a8da13928 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -234,15 +234,19 @@ export const pasteText = async (protyle: IProtyle, textPlain: string, nodeElemen
const emitResult = protyle.app.plugins[i].eventBus.emit("paste", {
protyle,
resolve,
- textHTML: "",
- textPlain: textPlain,
- siyuanHTML: "",
+ textHTML: textPlain,
+ textPlain,
+ siyuanHTML: textPlain,
files: []
});
if (emitResult) {
resolve(undefined);
}
});
+
+ if (response?.textPlain) {
+ textPlain = response.textPlain;
+ }
}
}