From 320086c161414bf118dc90510bcbb88fa106f1d3 Mon Sep 17 00:00:00 2001 From: Jiuqing Song Date: Tue, 8 Oct 2024 13:49:13 -0700 Subject: [PATCH] Patch #2823: Do not treat image without src as empty segment (#2824) * Do not treat image without src as empty image (#2823) * Patch #2823 --- .../roosterjs-content-model-dom/lib/modelApi/common/isEmpty.ts | 3 --- versions.json | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/roosterjs-content-model-dom/lib/modelApi/common/isEmpty.ts b/packages/roosterjs-content-model-dom/lib/modelApi/common/isEmpty.ts index ae399702e2d..93e356c6b13 100644 --- a/packages/roosterjs-content-model-dom/lib/modelApi/common/isEmpty.ts +++ b/packages/roosterjs-content-model-dom/lib/modelApi/common/isEmpty.ts @@ -56,9 +56,6 @@ export function isSegmentEmpty(segment: ReadonlyContentModelSegment): boolean { case 'Text': return !segment.text; - case 'Image': - return !segment.src; - default: return false; } diff --git a/versions.json b/versions.json index 2c9dfe8810b..41d078cbf60 100644 --- a/versions.json +++ b/versions.json @@ -3,6 +3,7 @@ "main": "9.11.0", "legacyAdapter": "8.62.1", "overrides": { + "roosterjs-content-model-dom": "9.11.1", "roosterjs-content-model-core": "9.11.1", "roosterjs-content-model-plugins": "9.11.1" }