mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
fbaf8edea9
commit
42513e0d6f
1 changed files with 6 additions and 1 deletions
|
|
@ -560,7 +560,12 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (target.classList && target.classList.contains("protyle-action")) {
|
if (target.classList && target.classList.contains("protyle-action")) {
|
||||||
|
if (hasClosestByClassName(target, "protyle-wysiwyg__embed")) {
|
||||||
|
window.siyuan.dragElement = undefined;
|
||||||
|
event.preventDefault();
|
||||||
|
} else {
|
||||||
window.siyuan.dragElement = target.parentElement;
|
window.siyuan.dragElement = target.parentElement;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 选中编辑器中的文字进行拖拽
|
// 选中编辑器中的文字进行拖拽
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue