8
0
Просмотр исходного кода

Exposed method used to prepare pasted table.

Kuba Niegowski 5 лет назад
Родитель
Сommit
47f93b24b1
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      packages/ckeditor5-table/src/tableclipboard.js

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

@@ -399,7 +399,15 @@ function expandTableSize( table, expectedHeight, expectedWidth, tableUtils ) {
 	}
 }
 
-function getTableIfOnlyTableInContent( content, model ) {
+/**
+ * Extract table for pasting into table.
+ *
+ * @private
+ * @param {module:engine/model/documentfragment~DocumentFragment|module:engine/model/item~Item} content The content to insert.
+ * @param {module:engine/model/model~Model} model The editor model.
+ * @returns {module:engine/model/element~Element|null}
+ */
+export function getTableIfOnlyTableInContent( content, model ) {
 	if ( !content.is( 'documentFragment' ) && !content.is( 'element' ) ) {
 		return null;
 	}