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: rename plugin name of zen-editor (#936)
白熱97999864385d
diff --git a/examples/src/sheets/main.ts b/examples/src/sheets/main.tsindex bc70048a54..213e6f12bf 100644--- a/examples/src/sheets/main.ts+++ b/examples/src/sheets/main.ts@@ -26,7 +26,7 @@ import { UniverSheetsPlugin } from '@univerjs/sheets';import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';-import { ZenEditorPlugin } from '@univerjs/sheets-zen-editor';+import { UniverSheetsZenEditorPlugin } from '@univerjs/sheets-zen-editor';import { UniverUIPlugin } from '@univerjs/ui';import { DEFAULT_WORKBOOK_DATA_DEMO } from '../data';@@ -63,7 +63,7 @@ univer.registerPlugin(UniverDocsUIPlugin);univer.registerPlugin(UniverSheetsNumfmtPlugin);univer.registerPlugin(DebuggerPlugin);-univer.registerPlugin(ZenEditorPlugin);+univer.registerPlugin(UniverSheetsZenEditorPlugin);univer.registerPlugin(UniverFormulaEnginePlugin, {notExecuteFormula: true,});diff --git a/packages/sheets-zen-editor/src/plugin.ts b/packages/sheets-zen-editor/src/plugin.tsindex 03f91b2511..b7f1128546 100644--- a/packages/sheets-zen-editor/src/plugin.ts+++ b/packages/sheets-zen-editor/src/plugin.ts@@ -22,13 +22,12 @@ import { ZenEditorController } from './controllers/zen-editor.controller';import { ZenEditorUIController } from './controllers/zen-editor-ui.controller';import { IZenEditorManagerService, ZenEditorManagerService } from './services/zen-editor.service';-export interface IZenEditorPluginConfig {}--export class ZenEditorPlugin extends Plugin {+export interface IUniverSheetsZenEditorPluginConfig {}+export class UniverSheetsZenEditorPlugin extends Plugin {static override type = PluginType.Doc;constructor(- config: IZenEditorPluginConfig,+ config: IUniverSheetsZenEditorPluginConfig,@Inject(Injector) override readonly _injector: Injector) {super('zen-editor');