From 703d1032d72c8bedb7b94c3ef049dd3c83085c54 Mon Sep 17 00:00:00 2001 From: "SOUTHAMERICA\\bvalverde" Date: Wed, 5 Jun 2024 10:46:22 -0600 Subject: [PATCH] Remove more unneeded changes --- .../lib/modelApi/editing/mergeModel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/roosterjs-content-model-dom/lib/modelApi/editing/mergeModel.ts b/packages/roosterjs-content-model-dom/lib/modelApi/editing/mergeModel.ts index a1bcd6ffd6f..9a41a44ef81 100644 --- a/packages/roosterjs-content-model-dom/lib/modelApi/editing/mergeModel.ts +++ b/packages/roosterjs-content-model-dom/lib/modelApi/editing/mergeModel.ts @@ -348,7 +348,7 @@ function applyDefaultFormat( break; case 'Paragraph': - const decoratorFormat = block.decorator?.format || {}; + const paragraphFormat = block.decorator?.format || {}; const paragraph = mutateBlock(block); paragraph.segments.forEach(segment => { @@ -357,7 +357,7 @@ function applyDefaultFormat( } segment.format = mergeSegmentFormat(applyDefaultFormatOption, format, { - ...decoratorFormat, + ...paragraphFormat, ...segment.format, });