Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheets-ui): fix doc plugins not loaded before sheet editor (#2279)
Wenzhao Hue467c1efbd38
diff --git a/packages/ui/src/ui-plugin.ts b/packages/ui/src/ui-plugin.tsindex 63bc78c3a3..8b1c7105e8 100644--- a/packages/ui/src/ui-plugin.ts+++ b/packages/ui/src/ui-plugin.ts@@ -91,7 +91,10 @@ export class UniverUIPlugin extends Plugin {override onStarting(_injector: Injector): void {this._initDependencies(_injector);+ }+ override onReady(): void {+ // TODO@Jocs: this has to be on Ready hook because of editor related modules' sequence problem.this._initUI();}@@ -134,6 +137,7 @@ export class UniverUIPlugin extends Plugin {}private _initUI(): void {+ // We need to run this async to let other modules do their `onReady` jobs first.Promise.resolve().then(() => this._injector.get(IUIController).bootstrapWorkbench(this._config));}}