Ver código fonte

Fixed getTableIfOnlyTableInContent if content has no children.

Kuba Niegowski 5 anos atrás
pai
commit
3633a36510
1 arquivos alterados com 1 adições e 1 exclusões
  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;
 	}