Skip to content

Commit

Permalink
fix(docs-ui): formula-editor should not render paragraph style (#3783)
Browse files Browse the repository at this point in the history
  • Loading branch information
weird94 authored Oct 17, 2024
1 parent 2db351b commit b7301af
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -215,7 +220,6 @@ export class EditorDataSyncController extends Disposable {
this._checkAndSetRenderStyleConfig(docDataModel);

docViewModel.reset(docDataModel);

const currentRender = this._renderManagerService.getRenderById(unitId);

if (currentRender == null) {
Expand Down

0 comments on commit b7301af

Please sign in to comment.