From 43dfab71db823bf525756209a34c114227fb4e01 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 31 Aug 2022 22:36:53 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20https://github.com/siyuan-note/siyuan/i?= =?UTF-8?q?ssues/5735=20=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/util/paste.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 18e9bfe98..8067c5fcc 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -224,6 +224,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven e.setAttribute("updated", newId.split("-")[0]); } }); + // 从历史中复制后粘贴 + tempElement.querySelectorAll('[spellcheck="false"][contenteditable="false"]').forEach((e) => { + e.setAttribute("contenteditable", "true"); + }); const tempInnerHTML = tempElement.innerHTML; insertHTML(tempInnerHTML, protyle); filterClipboardHint(protyle, tempInnerHTML);