Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
f19d5a2085
2 changed files with 13 additions and 1 deletions
|
@ -15,6 +15,7 @@ import {App} from "../../index";
|
|||
import {getCloudURL} from "../../config/util/about";
|
||||
import {hasClosestByClassName} from "../../protyle/util/hasClosest";
|
||||
import {escapeHtml} from "../../util/escape";
|
||||
import {emitOpenMenu} from "../../plugin/EventBus";
|
||||
|
||||
export class Inbox extends Model {
|
||||
private element: Element;
|
||||
|
@ -294,6 +295,17 @@ ${data.shorthandContent}
|
|||
}
|
||||
}).element);
|
||||
}
|
||||
if (this.app.plugins) {
|
||||
emitOpenMenu({
|
||||
plugins: this.app.plugins,
|
||||
type: "open-menu-inbox",
|
||||
detail: {
|
||||
ids,
|
||||
element: itemElement || detailsElement,
|
||||
},
|
||||
separatorPosition: "top",
|
||||
});
|
||||
}
|
||||
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY + 16});
|
||||
}
|
||||
|
||||
|
|
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
@ -56,7 +56,7 @@ type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" |
|
|||
"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-breadcrumbmore" | "open-menu-doctree" |
|
||||
"open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" | "open-menu-doctree" | "open-menu-inbox" |
|
||||
"open-siyuan-url-plugin" | "open-siyuan-url-block" |
|
||||
"paste" |
|
||||
"input-search" |
|
||||
|
|
Loading…
Add table
Reference in a new issue