소스 검색

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;
 		}