diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts index e0e2f3e9c..68d0ead5b 100644 --- a/app/src/plugin/index.ts +++ b/app/src/plugin/index.ts @@ -28,7 +28,7 @@ export class Plugin { filter: string[], html: string, id: string, - callback: (protyle: import("../protyle").Protyle) => void + callback: (protyle: import("../protyle").Protyle, nodeElement: HTMLElement) => void }[] = []; // TODO public customBlockRenders: { diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index 3f6506830..72adbf4cf 100644 --- a/app/src/protyle/hint/index.ts +++ b/app/src/protyle/hint/index.ts @@ -715,7 +715,7 @@ ${genHintItemHTML(item)} if (ids[1] === plugin.name) { plugin.protyleSlash.find((slash) => { if (slash.id === ids[2]) { - slash.callback(protyle.getInstance()); + slash.callback(protyle.getInstance(), nodeElement); return true; } });