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/6649
Vanessa065575214e99
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 194cc443b3..af039c0127 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -296,7 +296,8 @@ export class WYSIWYG {const documentSelf = document;const rect = protyle.element.getBoundingClientRect();const mostLeft = rect.left + parseInt(protyle.wysiwyg.element.style.paddingLeft) + 1;- const mostRight = mostLeft + protyle.wysiwyg.element.firstElementChild.clientWidth - 1;+ // 不能用 firstElement,否则 https://ld246.com/article/1668758661338+ const mostRight = mostLeft + (protyle.wysiwyg.element.clientWidth - parseInt(protyle.wysiwyg.element.style.paddingLeft) - parseInt(protyle.wysiwyg.element.style.paddingRight)) - 1;const mostBottom = rect.bottom;const y = event.clientY;// 图片、iframe、video 缩放