Vanessa 2025-02-11 18:47:24 +08:00
parent 33109175cc
commit e76d0084ed
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ export class Plugin {
filter: string[], filter: string[],
html: string, html: string,
id: string, id: string,
callback: (protyle: import("../protyle").Protyle) => void callback: (protyle: import("../protyle").Protyle, nodeElement: HTMLElement) => void
}[] = []; }[] = [];
// TODO // TODO
public customBlockRenders: { public customBlockRenders: {

View file

@ -715,7 +715,7 @@ ${genHintItemHTML(item)}
if (ids[1] === plugin.name) { if (ids[1] === plugin.name) {
plugin.protyleSlash.find((slash) => { plugin.protyleSlash.find((slash) => {
if (slash.id === ids[2]) { if (slash.id === ids[2]) {
slash.callback(protyle.getInstance()); slash.callback(protyle.getInstance(), nodeElement);
return true; return true;
} }
}); });