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