This commit is contained in:
parent
bbc67b32e2
commit
6652ac5352
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue