mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 10:50:15 +01:00
This commit is contained in:
parent
6b2ac5e630
commit
ffd6459540
2 changed files with 3 additions and 9 deletions
|
|
@ -1056,9 +1056,10 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
let dragoverElement: Element;
|
||||
let disabledPosition: string;
|
||||
editorElement.addEventListener("dragover", (event: DragEvent & { target: HTMLElement }) => {
|
||||
if (protyle.disabled) {
|
||||
if (protyle.disabled || event.dataTransfer.types.includes(Constants.SIYUAN_DROP_EDITOR)) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
event.dataTransfer.dropEffect = "none";
|
||||
return;
|
||||
}
|
||||
const contentRect = protyle.contentElement.getBoundingClientRect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue