Kaynağa Gözat

Improve wording of method docs and test.

Maciej 5 yıl önce
ebeveyn
işleme
ce13327cfa

+ 2 - 2
packages/ckeditor5-table/src/tableselection/croptable.js

@@ -104,8 +104,8 @@ export function cropTableToDimensions( sourceTable, cropDimensions, writer, tabl
 /**
  * Adjusts table cell dimensions to not exceed limit row and column.
  *
- * If table cell span to a column (or row) that is after a limit column (or row) trim colspan (or rowspan)
- * so the table cell will fit in a cropped area.
+ * If table cell width (or height) covers a column (or row) that is after a limit column (or row)
+ * this method will trim "colspan" (or "rowspan") attribute so the table cell will fit in a defined limits.
  *
  * @param {module:engine/model/element~Element} tableCell
  * @param {Number} cellRow

+ 1 - 1
packages/ckeditor5-table/tests/tableclipboard-paste.js

@@ -2652,7 +2652,7 @@ describe( 'table clipboard', () => {
 					] );
 				} );
 
-				it( 'should repeat pasted cells in the both directions', () => {
+				it( 'should repeat pasted cells in both directions', () => {
 					tableSelection.setCellSelection(
 						modelRoot.getNodeByPath( [ 0, 0, 0 ] ),
 						modelRoot.getNodeByPath( [ 0, 4, 4 ] )