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 Agent lite editor interactions https://github.com/siyuan-note/siyuan/issues/17797
Daniel6f4a109777ae
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 93bde9e37a..f1c09559ee 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -1251,7 +1251,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {if (matchHotKey("⌘A", event)) {event.preventDefault();const selectedCurrentContent = selectAll(protyle, nodeElement, range);- if (selectedCurrentContent && !nodeElement.classList.contains("code-block") && !isMobile()) {+ if (selectedCurrentContent && !protyle.lite &&+ !nodeElement.classList.contains("code-block") && !isMobile()) {showSelectAllTip();}return true;diff --git a/app/src/util/checkBlockRef.ts b/app/src/util/checkBlockRef.tsindex 09c7f02529..ea71355108 100644--- a/app/src/util/checkBlockRef.ts+++ b/app/src/util/checkBlockRef.ts@@ -30,6 +30,9 @@ export const checkBlockRef = async (options: IBlockRefCheckOptions, protyle?: IP};export const confirmBlockRef = async (options: IBlockRefCheckOptions, protyle?: IProtyle) => {+ if (protyle?.lite) {+ return true;+ }if (protyle && pendingChecks.has(protyle)) {return false;}