Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/12585

Vanessa6b030044a85f
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index a7667a3bd2..61cf1af470 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2278,7 +2278,7 @@ export class WYSIWYG {
}
const embedItemElement = hasClosestByClassName(event.target, "protyle-wysiwyg__embed");
- if (embedItemElement && !ctrlIsPressed) {
+ if (embedItemElement) {
const embedId = embedItemElement.getAttribute("data-id");
checkFold(embedId, (zoomIn, action) => {
/// #if MOBILE
@@ -2320,8 +2320,11 @@ export class WYSIWYG {
}
/// #endif
});
- event.stopPropagation();
- return;
+ // https://github.com/siyuan-note/siyuan/issues/12585
+ if (!ctrlIsPressed) {
+ event.stopPropagation();
+ return;
+ }
}
if (commonClick(event, protyle)) {