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; + } } }