This commit is contained in:
Vanessa 2022-07-11 14:46:15 +08:00
parent 6de5f5f3ab
commit 19dba40fc1

View file

@ -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;
} }