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/11424

Vanessab150d1021e25
diff --git a/app/src/protyle/render/av/view.ts b/app/src/protyle/render/av/view.ts
index 3d1800e4e9..5044f6cf7b 100644
--- a/app/src/protyle/render/av/view.ts
+++ b/app/src/protyle/render/av/view.ts
@@ -7,6 +7,9 @@ import {getEditorRange} from "../../util/selection";
import {Constants} from "../../../constants";
export const openViewMenu = (options: { protyle: IProtyle, blockElement: HTMLElement, element: HTMLElement }) => {
+ if (options.protyle.disabled) {
+ return;
+ }
const menu = new Menu("av-view");
if (menu.isOpen) {
return;