فهرست منبع

:art: fix https://github.com/siyuan-note/siyuan/issues/8335

Vanessa 2 سال پیش
والد
کامیت
8cc7752cea
2فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 7 0
      app/src/protyle/header/Title.ts
  2. 1 1
      app/src/types/index.d.ts

+ 7 - 0
app/src/protyle/header/Title.ts

@@ -411,6 +411,13 @@ export class Title {
 ${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14)).format("YYYY-MM-DD HH:mm:ss")}`
 ${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14)).format("YYYY-MM-DD HH:mm:ss")}`
             }).element);
             }).element);
             window.siyuan.menus.menu.popup(position);
             window.siyuan.menus.menu.popup(position);
+            this.app?.plugins?.forEach((plugin) => {
+                plugin.eventBus.emit("click-editortitleicon", {
+                    protyle,
+                    menu: window.siyuan.menus.menu,
+                    data: response.data,
+                });
+            });
         });
         });
     }
     }
 
 

+ 1 - 1
app/src/types/index.d.ts

@@ -22,7 +22,7 @@ type TOperation =
     | "removeFlashcards"
     | "removeFlashcards"
 type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
 type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
 type TCardType = "doc" | "notebook" | "all"
 type TCardType = "doc" | "notebook" | "all"
-type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf"
+type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon"
 
 
 declare module "blueimp-md5"
 declare module "blueimp-md5"