mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
This commit is contained in:
parent
6b6ce37ca2
commit
76141021d0
16 changed files with 67 additions and 45 deletions
|
|
@ -9,6 +9,7 @@ import {getFrontend, isMobile, isWindow} from "../util/functions";
|
|||
import {Constants} from "../constants";
|
||||
import {uninstall} from "./uninstall";
|
||||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
import { getAllEditor } from "../layout/getAll";
|
||||
|
||||
const requireFunc = (key: string) => {
|
||||
const modules = {
|
||||
|
|
@ -85,6 +86,9 @@ export const loadPlugin = async (app: App, item: IPluginData) => {
|
|||
document.head.append(styleElement);
|
||||
afterLoadPlugin(plugin);
|
||||
saveLayout();
|
||||
getAllEditor().forEach(editor => {
|
||||
editor.protyle.toolbar.update(editor.protyle);
|
||||
});
|
||||
return plugin;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue