mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00: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;
|
||||
}
|
||||
if (target.classList && target.classList.contains("protyle-action")) {
|
||||
window.siyuan.dragElement = target.parentElement;
|
||||
if (hasClosestByClassName(target, "protyle-wysiwyg__embed")) {
|
||||
window.siyuan.dragElement = undefined;
|
||||
event.preventDefault();
|
||||
} else {
|
||||
window.siyuan.dragElement = target.parentElement;
|
||||
}
|
||||
return;
|
||||
}
|
||||
// 选中编辑器中的文字进行拖拽
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue