From 2ea36de32ceda68e6d1c8b0eaf4cacefcc1f72be Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 29 Jan 2025 21:40:58 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/pull/13927 --- app/src/protyle/util/paste.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index a99cd7ec8..9a8da1392 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; + } } }