浏览代码

Fixed getTableIfOnlyTableInContent if content has no children.

Kuba Niegowski 5 年之前
父节点
当前提交
3633a36510
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-table/src/tableclipboard.js

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

@@ -252,7 +252,7 @@ function getTableIfOnlyTableInContent( content ) {
 
 	// We do not support mixed content when pasting table into table.
 	// See: https://github.com/ckeditor/ckeditor5/issues/6817.
-	if ( content.childCount > 1 || !content.getChild( 0 ).is( 'table' ) ) {
+	if ( content.childCount != 1 || !content.getChild( 0 ).is( 'table' ) ) {
 		return null;
 	}