From 586908b3161e437d0442bb699e3ceffd418783f0 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:31:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=96=E6=8B=BD=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B9=E6=97=B6=E9=AB=98=E4=BA=AE=E5=9D=97=20(#13974)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/util/editorCommonEvent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index e3c3f3db3..71748c17f 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -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));