Skip to content

Commit 22a8302

Browse files
committed
fix: rich text indented list error
1 parent 3c0d71a commit 22a8302

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/pluggableWidgets/rich-text-web/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1414
### Fixed
1515

1616
- We fixed issue when empty paragraph do not shown as line break in html viewer by adding empty space content ` `.
17+
- We fixed an issue where indented list throws error when reopen.
1718

1819
## [4.7.0] - 2025-06-02
1920

packages/pluggableWidgets/rich-text-web/src/utils/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function constructWrapperStyle(props: RichTextContainerProps): CSSPropert
3838
export function updateLegacyQuillFormats(quill: Quill): boolean {
3939
const results = transformLegacyQuillFormats(quill.getContents());
4040
if (results.isDirty) {
41-
quill.setContents(results.data, Quill.sources.USER);
41+
quill.setContents(new Delta(results.data), Quill.sources.API);
4242
}
4343
return results.isDirty;
4444
}

0 commit comments

Comments
 (0)