Vanessa 2024-11-11 12:52:02 +08:00
parent 6b6ce37ca2
commit 76141021d0
16 changed files with 67 additions and 45 deletions

View file

@ -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;
};