From f651f8f8f1724115a1b768ca435edc614cb703b1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 23 Apr 2025 17:31:13 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14567 --- app/src/protyle/wysiwyg/commonHotkey.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts index 7b5666040..71656bcf9 100644 --- a/app/src/protyle/wysiwyg/commonHotkey.ts +++ b/app/src/protyle/wysiwyg/commonHotkey.ts @@ -270,6 +270,7 @@ export const duplicateBlock = (nodeElements: Element[], protyle: IProtyle) => { const newId = Lute.NewNodeID(); tempElement.setAttribute("data-node-id", newId); tempElement.removeAttribute(Constants.CUSTOM_RIFF_DECKS); + tempElement.classList.remove("protyle-wysiwyg--hl"); tempElement.setAttribute("updated", newId.split("-")[0]); tempElement.removeAttribute("refcount"); tempElement.lastElementChild.querySelector(".protyle-attr--refcount")?.remove(); @@ -277,6 +278,7 @@ export const duplicateBlock = (nodeElements: Element[], protyle: IProtyle) => { const subNewId = Lute.NewNodeID(); childItem.setAttribute("data-node-id", subNewId); childItem.removeAttribute(Constants.CUSTOM_RIFF_DECKS); + childItem.classList.remove("protyle-wysiwyg--hl"); childItem.setAttribute("updated", subNewId.split("-")[0]); childItem.removeAttribute("refcount"); childItem.lastElementChild.querySelector(".protyle-attr--refcount")?.remove();