feat: 拖拽列表项时高亮块 (#13974)

This commit is contained in:
Jeffrey Chen 2025-02-03 17:31:32 +08:00 committed by GitHub
parent 7f9d00fbf1
commit 586908b316
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -817,6 +817,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
window.siyuan.dragElement = undefined;
event.preventDefault();
} else if (target.classList.contains("protyle-action")) {
target.parentElement.classList.add("protyle-wysiwyg--select");
const ghostElement = document.createElement("div");
ghostElement.className = protyle.wysiwyg.element.className;
ghostElement.append(processClonePHElement(target.parentElement.cloneNode(true) as Element));