This commit is contained in:
Vanessa 2022-11-11 23:35:03 +08:00
parent a3cecb99e0
commit 86804f1c1d

View file

@ -912,6 +912,9 @@ export class WYSIWYG {
this.element.addEventListener("cut", (event: ClipboardEvent & { target: HTMLElement }) => {
window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373
if (protyle.disabled) {
return;
}
if (event.target.tagName === "PROTYLE-HTML") {
event.stopPropagation();
return;