Vanessa 2025-01-29 21:40:58 +08:00
parent 1415aa1d8f
commit 2ea36de32c

View file

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