This commit is contained in:
Vanessa 2022-07-27 00:42:14 +08:00
parent bbc67b32e2
commit 6652ac5352

View file

@ -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);