An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/11793
Vanessa84a52019f846
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 63c752e939..41864e4cf1 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -3,7 +3,7 @@ import {hasClosestBlock,hasClosestByAttribute,hasClosestByClassName,- hasClosestByMatchTag,+ hasClosestByMatchTag, hasTopClosestByAttribute,hasTopClosestByClassName,} from "../util/hasClosest";import {@@ -1327,7 +1327,11 @@ export class WYSIWYG {event.preventDefault();return;}-+ // https://github.com/siyuan-note/siyuan/issues/11793+ const embedElement = hasTopClosestByAttribute(nodeElement.parentElement, "data-type", "NodeBlockQueryEmbed");+ if (embedElement) {+ nodeElement = embedElement;+ }event.stopPropagation();event.preventDefault();const selectImgElement = nodeElement.querySelector(".img--select");