This commit is contained in:
parent
6b2ac5e630
commit
ffd6459540
2 changed files with 3 additions and 9 deletions
|
@ -482,14 +482,7 @@ export abstract class Constants {
|
|||
"size": "auto",
|
||||
"type": "center",
|
||||
"instance": "Layout",
|
||||
"children": [{
|
||||
"instance": "Wnd",
|
||||
"children": [],
|
||||
// "children": [{
|
||||
// "instance": "Tab",
|
||||
// "children": []
|
||||
// }]
|
||||
}]
|
||||
"children": [{"instance": "Wnd", "children": [{"instance": "Tab", "children": []}]}]
|
||||
}, {
|
||||
"direction": "tb",
|
||||
"size": "0px",
|
||||
|
|
|
@ -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
Reference in a new issue