mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 17:28:50 +01:00
This commit is contained in:
parent
f8b6ce02ab
commit
bbf86aeeba
2 changed files with 15 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ import {deleteFile} from "../../editor/deleteFile";
|
|||
import {Menu} from "../../plugin/Menu";
|
||||
import {getNoContainerElement} from "../wysiwyg/getBlock";
|
||||
import {openTitleMenu} from "../header/openTitleMenu";
|
||||
import {emitOpenMenu} from "../../plugin/EventBus";
|
||||
|
||||
export class Breadcrumb {
|
||||
public element: HTMLElement;
|
||||
|
|
@ -426,6 +427,19 @@ export class Breadcrumb {
|
|||
submenu: editSubmenu
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(exportMd(protyle.block.showAll ? protyle.block.id : protyle.block.rootID));
|
||||
|
||||
if (protyle?.app?.plugins) {
|
||||
emitOpenMenu({
|
||||
plugins: protyle.app.plugins,
|
||||
type: "open-menu-breadcrumbmore",
|
||||
detail: {
|
||||
protyle,
|
||||
data: response.data,
|
||||
},
|
||||
separatorPosition: "top",
|
||||
});
|
||||
}
|
||||
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
iconHTML: Constants.ZWSP,
|
||||
|
|
|
|||
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
|
@ -36,7 +36,7 @@ type TEventBus = "ws-main" |
|
|||
"click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon" |
|
||||
"open-noneditableblock" |
|
||||
"open-menu-blockref" | "open-menu-fileannotationref" | "open-menu-tag" | "open-menu-link" | "open-menu-image" |
|
||||
"open-menu-av" | "open-menu-content" |
|
||||
"open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" |
|
||||
"loaded-protyle"
|
||||
type TAVCol = "text" | "date" | "number" | "relation" | "rollup" | "select" | "block" | "mSelect"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue