mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 02:04:20 +01:00
🚨
This commit is contained in:
parent
7caf6a5699
commit
8075902681
3 changed files with 3 additions and 4 deletions
|
|
@ -84,7 +84,7 @@ export class Background {
|
|||
} else {
|
||||
this.element.addEventListener("dragover", async (event) => {
|
||||
event.preventDefault();
|
||||
})
|
||||
});
|
||||
this.element.addEventListener("drop", async (event: DragEvent & { target: HTMLElement }) => {
|
||||
if (event.dataTransfer.types[0] === "Files" && event.dataTransfer.files[0].type.indexOf("image") !== -1) {
|
||||
uploadFiles(protyle, [event.dataTransfer.files[0]], undefined, (responseText) => {
|
||||
|
|
@ -98,7 +98,7 @@ export class Background {
|
|||
});
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
this.imgElement.addEventListener("mousedown", (event: MouseEvent & { target: HTMLElement }) => {
|
||||
event.preventDefault();
|
||||
if (!this.element.firstElementChild.querySelector(".protyle-icons").classList.contains("fn__none")) {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import {
|
|||
import {getCurrentWindow} from "@electron/remote";
|
||||
/// #endif
|
||||
import {Constants} from "../../constants";
|
||||
import {hasClosestByClassName} from "../util/hasClosest";
|
||||
import {matchHotKey} from "../util/hotKey";
|
||||
import {readText, updateHotkeyTip, writeText} from "../util/compatibility";
|
||||
import {escapeHtml} from "../../util/escape";
|
||||
|
|
|
|||
|
|
@ -76,4 +76,4 @@ export const commonClick = (event: MouseEvent & {
|
|||
event.stopPropagation();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue