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,8 +1001,8 @@ export class WYSIWYG {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (selectElement.length > 0) {
|
if (selectElement.length > 0) {
|
||||||
range.collapse(true);
|
range.collapse(true);
|
||||||
|
@ -1463,7 +1463,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNotEditBlock(nodeElement) && matchHotKey("⌘C", event)) {
|
if (matchHotKey("⌘C", event)) {
|
||||||
let html = "";
|
let html = "";
|
||||||
protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select").forEach(item => {
|
protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select").forEach(item => {
|
||||||
html += removeEmbed(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 = "";
|
let html = "";
|
||||||
nodeElement.classList.add("protyle-wysiwyg--select");
|
nodeElement.classList.add("protyle-wysiwyg--select");
|
||||||
const selectElements = protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select");
|
const selectElements = protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select");
|
||||||
|
Loading…
Reference in New Issue
Block a user