8
0
Эх сурвалжийг харах

Simplified child appending.

Oskar Wróbel 8 жил өмнө
parent
commit
0a70c81a29

+ 1 - 3
packages/ckeditor5-list/src/converters.js

@@ -382,9 +382,7 @@ export function viewModelConverter( evt, data, consumable, conversionApi ) {
 			// If this is a view list element, we will convert it and concat the result (`listItem` model elements)
 			// with already gathered results (in `items` array). `converted` should be a `ModelDocumentFragment`.
 			if ( child.name == 'ul' || child.name == 'ol' ) {
-				for ( const child of Array.from( converted.getChildren() ) ) {
-					batch.append( child, items );
-				}
+				batch.append( converted, items );
 			}
 			// If it was not a list it was a "regular" list item content. Just append it to `listItem`.
 			else {