mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
1415aa1d8f
commit
2ea36de32c
1 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue