From bfbcb3c3f03e4529e8d25976094eaecb9181913b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 18 Apr 2023 18:18:10 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8010 --- app/src/protyle/util/paste.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 3b98c6397..f1f0b7df7 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -53,11 +53,10 @@ export const pasteAsPlainText = async (protyle: IProtyle) => { } /// #endif if (localFiles.length === 0) { - getCurrentWindow().webContents.pasteAndMatchStyle(); - // 下个版本再进行修改 https://github.com/siyuan-note/siyuan/issues/8010 - // navigator.clipboard.readText().then(async textPlain => { - // insertHTML(protyle.lute.BlockDOM2Content(protyle.lute.Md2BlockDOM(textPlain)), protyle); - // }); + // https://github.com/siyuan-note/siyuan/issues/8010 + navigator.clipboard.readText().then(textPlain => { + insertHTML(protyle.lute.BlockDOM2Content(protyle.lute.Md2BlockDOM(textPlain)), protyle); + }); } };