This commit is contained in:
Vanessa 2023-06-28 22:57:18 +08:00
parent 6737a68fd7
commit 7331e9d834
4 changed files with 19 additions and 19 deletions

View file

@ -621,17 +621,17 @@ ${unicode2Emoji(emoji.unicode)}</button>`;
return;
} else if (value.startsWith("plugin")) {
protyle.app.plugins.find((plugin) => {
const ids = value.split(Constants.ZWSP)
const ids = value.split(Constants.ZWSP);
if (ids[1] === plugin.name) {
plugin.protyleSlash.find((slash) => {
if (slash.id === ids[2]){
slash.callback(protyle.getInstance());
return true;
}
})
});
return true;
}
})
});
return;
} else {
range.deleteContents();