Commit a47e477 1 parent 171b915 commit a47e477 Copy full SHA for a47e477
File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {App} from "../../index";
15
15
import { getCloudURL } from "../../config/util/about" ;
16
16
import { hasClosestByClassName } from "../../protyle/util/hasClosest" ;
17
17
import { escapeHtml } from "../../util/escape" ;
18
+ import { emitOpenMenu } from "../../plugin/EventBus" ;
18
19
19
20
export class Inbox extends Model {
20
21
private element : Element ;
@@ -294,6 +295,17 @@ ${data.shorthandContent}
294
295
}
295
296
} ) . element ) ;
296
297
}
298
+ if ( this . app . plugins ) {
299
+ emitOpenMenu ( {
300
+ plugins : this . app . plugins ,
301
+ type : "open-menu-inbox" ,
302
+ detail : {
303
+ ids,
304
+ element : itemElement || detailsElement ,
305
+ } ,
306
+ separatorPosition : "top" ,
307
+ } ) ;
308
+ }
297
309
window . siyuan . menus . menu . popup ( { x : event . clientX , y : event . clientY + 16 } ) ;
298
310
}
299
311
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" |
56
56
"click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon" |
57
57
"open-noneditableblock" |
58
58
"open-menu-blockref" | "open-menu-fileannotationref" | "open-menu-tag" | "open-menu-link" | "open-menu-image" |
59
- "open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" | "open-menu-doctree" |
59
+ "open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" | "open-menu-doctree" | "open-menu-inbox" |
60
60
"open-siyuan-url-plugin" | "open-siyuan-url-block" |
61
61
"paste" |
62
62
"input-search" |
You can’t perform that action at this time.
0 commit comments