Sfoglia il codice sorgente

Apply suggestions from code review.

Co-Authored-By: Aleksander Nowodzinski <a.nowodzinski@cksource.com>
Maciej 5 anni fa
parent
commit
a9d92b0f2c
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      packages/ckeditor5-table/src/tableutils.js

+ 3 - 3
packages/ckeditor5-table/src/tableutils.js

@@ -254,14 +254,14 @@ export default class TableUtils extends Plugin {
 	}
 
 	/**
-	 * Removes a row from the given `table`.
+	 * Removes rows from the given `table`.
 	 *
-	 * This method properly re-calculate table geometry including `rowspan` attribute of any table cell that is overlapping removed row
+	 * This method re-calculates the table geometry including `rowspan` attribute of table cells overlapping removed rows
 	 * and table headings values.
 	 *
 	 *		editor.plugins.get( 'TableUtils' ).removeRows( table, { at: 1, rows: 2 } );
 	 *
-	 * Assuming the table on the left, the above code will transform it to the table on the right:
+	 * Executing the above code in the context of the table on the left will transform its structure as presented on the right:
 	 *
 	 *		row index
 	 *		    ┌───┬───┬───┐        `at` = 1        ┌───┬───┬───┐