mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
feat: 拖拽列表项时高亮块 (#13974)
This commit is contained in:
parent
7f9d00fbf1
commit
586908b316
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue