An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 有 iframe 时,无法拖拽列表圆点
Vanessaab5c9c692768
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 441d295968..a3c9e0f564 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -573,7 +573,11 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {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));+ const cloneElement = processClonePHElement(target.parentElement.cloneNode(true) as Element);+ cloneElement.querySelectorAll(".iframe").forEach(item => {+ item.remove();+ });+ ghostElement.append(cloneElement);ghostElement.setAttribute("style", `position:fixed;opacity:.1;width:${target.parentElement.clientWidth}px;padding:0;`);document.body.append(ghostElement);event.dataTransfer.setDragImage(ghostElement, 0, 0);