@@ -62,7 +62,7 @@ import { EditorWindow } from "./editor/window";
62
62
import { HandlerType , type IFacadeOptions } from "./facades/facade" ;
63
63
64
64
/* 类型 */
65
- import type { IClickBlockIconEvent , IClickEditorContentEvent , IOpenMenuLinkEvent , IOpenSiyuanUrlPluginsEvent } from "@workspace/types/siyuan/events" ;
65
+ import type { IClickBlockIconEvent , IClickEditorContentEvent , IOpenMenuLinkEvent , IOpenSiyuanUrlPluginEvent } from "@workspace/types/siyuan/events" ;
66
66
import type { BlockID } from "@workspace/types/siyuan" ;
67
67
68
68
import type {
@@ -290,7 +290,7 @@ export default class MonacoEditorPlugin extends siyuan.Plugin {
290
290
this . eventBus . on ( "open-menu-link" , this . linkMenuEventListener ) ;
291
291
292
292
/* 思源 URL */
293
- this . eventBus . on ( "open-siyuan-url-plugins " , this . openSiyuanUrlEventListener ) ;
293
+ this . eventBus . on ( "open-siyuan-url-plugin " , this . openSiyuanUrlEventListener ) ;
294
294
295
295
// /* 快捷键/命令 */
296
296
// this.addCommand({
@@ -332,7 +332,7 @@ export default class MonacoEditorPlugin extends siyuan.Plugin {
332
332
this . eventBus . off ( "click-editortitleicon" , this . blockMenuEventListener ) ;
333
333
// this.eventBus.off("open-menu-blockref", this.blockRefMenuEventListener);
334
334
this . eventBus . off ( "open-menu-link" , this . linkMenuEventListener ) ;
335
- this . eventBus . off ( "open-siyuan-url-plugins " , this . openSiyuanUrlEventListener ) ;
335
+ this . eventBus . off ( "open-siyuan-url-plugin " , this . openSiyuanUrlEventListener ) ;
336
336
}
337
337
338
338
openSetting ( ) : void {
@@ -907,7 +907,7 @@ export default class MonacoEditorPlugin extends siyuan.Plugin {
907
907
}
908
908
909
909
/* 思源 URL 打开事件监听器 */
910
- protected readonly openSiyuanUrlEventListener = async ( e : IOpenSiyuanUrlPluginsEvent ) => {
910
+ protected readonly openSiyuanUrlEventListener = async ( e : IOpenSiyuanUrlPluginEvent ) => {
911
911
// this.logger.debug(e);
912
912
const url = new URL ( e . detail . url ) ;
913
913
if ( url . pathname . startsWith ( `//plugins/${ this . name } /workspace/` ) ) {
0 commit comments