An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 加强粘贴判断
Vanessa7eec8a6b85c5
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 76f20d87b9..137b64f50f 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1527,6 +1527,11 @@ export class WYSIWYG {event.stopPropagation();return;}+ if (!hasClosestByAttribute(event.target, "contenteditable", "true")) {+ event.stopPropagation();+ event.preventDefault();+ return;+ }const blockElement = hasClosestBlock(event.target);if (blockElement && !getContenteditableElement(blockElement)) {event.stopPropagation();