From 8689520ffa46c30a7126b4a0b3633ac6cb79456e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 26 Nov 2024 01:06:36 +0800 Subject: [PATCH] :art: Improve HTML clipping https://github.com/siyuan-note/siyuan/issues/13265 --- app/src/protyle/util/paste.ts | 7 ++++++- kernel/go.mod | 2 +- kernel/go.sum | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index d6700eefb24..0b77d5c58b1 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -452,9 +452,14 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven )) { isHTML = false; } else { - // 需注意 Edge 中的画选不应识别为图片 https://github.com/siyuan-note/siyuan/issues/7021 + // 需注意 Edge 中的划选不应识别为图片 https://github.com/siyuan-note/siyuan/issues/7021 isHTML = true; } + + if (textPlain && "" !== textPlain.trim() && textHTML.startsWith("