Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/18128

Vanessaa4d68c25791f
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index c48d1bfd7f..01c4f41f64 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2074,7 +2074,7 @@ export class WYSIWYG {
}
// https://github.com/siyuan-note/siyuan/issues/17800 不能删除
const embedElement = isInEmbedBlock(nodeElement);
- if (embedElement && embedElement.classList.contains("protyle-wysiwyg--select")) {
+ if (embedElement && !embedElement.classList.contains("protyle-wysiwyg--select")) {
event.stopPropagation();
event.preventDefault();
return;