diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts index 1ab8ccf44..a2d4eb7eb 100644 --- a/app/src/protyle/wysiwyg/keydown.ts +++ b/app/src/protyle/wysiwyg/keydown.ts @@ -1372,7 +1372,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => { return; } - if (isNotEditBlock(nodeElement) && matchHotKey("⌘C", event)) { + if (isNotEditBlock(nodeElement) && + nodeElement.getAttribute("data-type") !== "NodeHTMLBlock" // HTML 块选中部分内容无法复制 https://github.com/siyuan-note/siyuan/issues/5521 + && matchHotKey("⌘C", event)) { let html = ""; protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select").forEach(item => { html += removeEmbed(item);