mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
33109175cc
commit
e76d0084ed
2 changed files with 2 additions and 2 deletions
|
|
@ -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: {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue