Skip to content

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

:fire: Remove the "Import" item from the doc block menu within the doc https://github.com/siyuan-note/siyuan/issues/16019

Danielc7c0906082e3
diff --git a/app/src/protyle/header/openTitleMenu.ts b/app/src/protyle/header/openTitleMenu.ts
index 37dce17d04..50e2557b92 100644
--- a/app/src/protyle/header/openTitleMenu.ts
+++ b/app/src/protyle/header/openTitleMenu.ts
@@ -21,7 +21,6 @@ import {popSearch} from "../../mobile/menu/search";
import {openSearch} from "../../search/spread";
import {openDocHistory} from "../../history/doc";
import {openNewWindowById} from "../../window/openNewWindow";
-import {genImportMenu} from "../../menus/navigation";
import {transferBlockRef} from "../../menus/block";
import {addEditorToDatabase} from "../render/av/addToDatabase";
import {openFileById} from "../../editor/util";
@@ -267,7 +266,6 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition) => {
}
}).element);
}
- genImportMenu(protyle.notebookId, protyle.path);
window.siyuan.menus.menu.append(exportMd(protyle.block.showAll ? protyle.block.id : protyle.block.rootID));
window.siyuan.menus.menu.append(new MenuItem({id: "separator_4", type: "separator"}).element);