Ver código fonte

Add default values to internal methods.

Maciej Gołaszewski 5 anos atrás
pai
commit
4c2aeb55a0
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      packages/ckeditor5-table/src/tableclipboard.js

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

@@ -361,11 +361,11 @@ function trimCellsToRectangularSelection( selectedTableCells, writer ) {
 	doVerticalSplit( table, lastColumn + 1, rowIndexes, writer );
 
 	// 2. Split cells horizontally in two steps as first step might create cells that needs to split again.
-	doHorizontalSplit( table, firstRow, columnIndexes, writer, 0 );
+	doHorizontalSplit( table, firstRow, columnIndexes, writer );
 	doHorizontalSplit( table, lastRow + 1, columnIndexes, writer, firstRow );
 }
 
-function doHorizontalSplit( table, splitRow, limitColumns, writer, startRow ) {
+function doHorizontalSplit( table, splitRow, limitColumns, writer, startRow = 0 ) {
 	// If selection starts at first row then no split is needed.
 	if ( splitRow < 1 ) {
 		return;