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(docs-ui): formula-editor should not render paragraph style (#3783)
zhangwb7301afd70f5
diff --git a/packages/sheets-ui/src/controllers/editor/data-sync.controller.ts b/packages/sheets-ui/src/controllers/editor/data-sync.controller.tsindex c724208f5a..5e6d42c8d1 100644--- a/packages/sheets-ui/src/controllers/editor/data-sync.controller.ts+++ b/packages/sheets-ui/src/controllers/editor/data-sync.controller.ts@@ -200,6 +200,11 @@ export class EditorDataSyncController extends Disposable {unitId: string,body: IDocumentBody) {+ if (unitId === DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY) {+ if (body.paragraphs) {+ body.paragraphs = this._clearParagraph(body.paragraphs);+ }+ }const INCLUDE_LIST = [DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY];const skeleton = this._renderManagerService.getRenderById(unitId)?.with(DocSkeletonManagerService).getSkeleton();@@ -215,7 +220,6 @@ export class EditorDataSyncController extends Disposable {this._checkAndSetRenderStyleConfig(docDataModel);docViewModel.reset(docDataModel);-const currentRender = this._renderManagerService.getRenderById(unitId);if (currentRender == null) {