Explorar o código

Use getChildren() to iterate over document fragment.

Maciej Gołaszewski %!s(int64=5) %!d(string=hai) anos
pai
achega
3e723af522
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 		}