mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
This commit is contained in:
parent
1edd35029e
commit
e103b5c2f0
2 changed files with 14 additions and 1 deletions
|
|
@ -62,6 +62,8 @@ export const uninstall = (app: App, name: string, isUninstall = false) => {
|
|||
});
|
||||
// rm plugin
|
||||
app.plugins.splice(index, 1);
|
||||
// rm icons
|
||||
document.querySelector(`svg[data-name="${plugin.name}"]`)?.remove();
|
||||
// rm protyle toolbar
|
||||
getAllEditor().forEach(editor => {
|
||||
editor.protyle.toolbar.update(editor.protyle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue