This commit is contained in:
Vanessa 2023-09-25 09:43:31 +08:00
parent ebd1dce81c
commit 9463185acf
2 changed files with 3 additions and 3 deletions

View File

@ -1001,8 +1001,8 @@ export class WYSIWYG {
}
}
}
return;
}
return;
}
if (selectElement.length > 0) {
range.collapse(true);

View File

@ -1463,7 +1463,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
if (isNotEditBlock(nodeElement) && matchHotKey("⌘C", event)) {
if (matchHotKey("⌘C", event)) {
let html = "";
protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select").forEach(item => {
html += removeEmbed(item);
@ -1475,7 +1475,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
}
}
if (isNotEditBlock(nodeElement) && matchHotKey("⌘X", event)) {
if (matchHotKey("⌘X", event)) {
let html = "";
nodeElement.classList.add("protyle-wysiwyg--select");
const selectElements = protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select");