Преглед на файлове

Use getChildren() to iterate over document fragment.

Maciej Gołaszewski преди 5 години
родител
ревизия
3e723af522
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/ckeditor5-table/src/tableclipboard.js

+ 1 - 1
packages/ckeditor5-table/src/tableclipboard.js

@@ -242,7 +242,7 @@ function getTableFromContent( content ) {
 		return content;
 	}
 
-	for ( const child of Array.from( content ) ) {
+	for ( const child of content.getChildren() ) {
 		if ( child.is( 'table' ) ) {
 			return child;
 		}