mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
6de5f5f3ab
commit
19dba40fc1
1 changed files with 7 additions and 1 deletions
|
|
@ -590,7 +590,13 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||||
}
|
}
|
||||||
transaction(protyle, doOperations, undoOperations);
|
transaction(protyle, doOperations, undoOperations);
|
||||||
mathRender(protyle.wysiwyg.element);
|
mathRender(protyle.wysiwyg.element);
|
||||||
focusByWbr(protyle.wysiwyg.element, range);
|
if (targetElement.classList.contains("code-block")) {
|
||||||
|
highlightRender(protyle.wysiwyg.element);
|
||||||
|
} else {
|
||||||
|
focusByWbr(protyle.wysiwyg.element, range);
|
||||||
|
}
|
||||||
|
// 拖拽后无法使用快捷键
|
||||||
|
protyle.selectElement.classList.add("fn__none");
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue