Skip to content

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

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

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