Skip to content

Commit

Permalink
Patch #2823: Do not treat image without src as empty segment (#2824)
Browse files Browse the repository at this point in the history
* Do not treat image without src as empty image (#2823)

* Patch #2823
  • Loading branch information
JiuqingSong authored Oct 8, 2024
1 parent d2ce6eb commit 320086c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ export function isSegmentEmpty(segment: ReadonlyContentModelSegment): boolean {
case 'Text':
return !segment.text;

case 'Image':
return !segment.src;

default:
return false;
}
Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 320086c

Please sign in to comment.