mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 00:50:56 +08:00
This commit is contained in:
parent
ebd1dce81c
commit
9463185acf
@ -1001,9 +1001,9 @@ export class WYSIWYG {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (selectElement.length > 0) {
|
||||
range.collapse(true);
|
||||
return;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user