8
0
Pārlūkot izejas kodu

Simplified child appending.

Oskar Wróbel 8 gadi atpakaļ
vecāks
revīzija
0a70c81a29
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      packages/ckeditor5-list/src/converters.js

+ 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 {