From e76d0084ed61e8d187afb6cfc106ff932ff8864e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 11 Feb 2025 18:47:24 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14036 --- app/src/plugin/index.ts | 2 +- app/src/protyle/hint/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } });