Skip to content

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

:bug: Disable block focus in Protyle Lite https://github.com/siyuan-note/siyuan/issues/19137

Daniele6b894e00354
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 543da7a3cd..dde1bd0f4d 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -947,6 +947,9 @@ export const contentMenu = (protyle: IProtyle, nodeElement: Element) => {
};
export const enterBack = (protyle: IProtyle, id: string, focusPosition?: { start: number, end: number }) => {
+ if (protyle.lite) {
+ return;
+ }
if (!protyle.block.showAll) {
const parentDocumentID = getParentDocumentID({
path: protyle.path,
@@ -980,7 +983,7 @@ export const zoomOut = (options: {
reload?: boolean,
dataDocType?: string
}) => {
- if (options.protyle.options.backlinkData) {
+ if (options.protyle.lite || options.protyle.options.backlinkData) {
return;
}
if (options.id !== options.protyle.block.rootID) {