mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
0929e98dee
commit
bfbcb3c3f0
1 changed files with 4 additions and 5 deletions
|
|
@ -53,11 +53,10 @@ export const pasteAsPlainText = async (protyle: IProtyle) => {
|
||||||
}
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
if (localFiles.length === 0) {
|
if (localFiles.length === 0) {
|
||||||
getCurrentWindow().webContents.pasteAndMatchStyle();
|
// https://github.com/siyuan-note/siyuan/issues/8010
|
||||||
// 下个版本再进行修改 https://github.com/siyuan-note/siyuan/issues/8010
|
navigator.clipboard.readText().then(textPlain => {
|
||||||
// navigator.clipboard.readText().then(async textPlain => {
|
insertHTML(protyle.lute.BlockDOM2Content(protyle.lute.Md2BlockDOM(textPlain)), protyle);
|
||||||
// insertHTML(protyle.lute.BlockDOM2Content(protyle.lute.Md2BlockDOM(textPlain)), protyle);
|
});
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue