Kaynağa Gözat

Code style fix - keep order of declarations as in method call.

Maciej Gołaszewski 5 yıl önce
ebeveyn
işleme
101870f4ed

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

@@ -207,16 +207,16 @@ export default class TableClipboard extends Plugin {
 
 			pastedTable = cropTableToDimensions( pastedTable, cropDimensions, writer, tableUtils );
 
+			const pastedDimensions = {
+				width: pasteWidth,
+				height: pasteHeight
+			};
 			const selectionDimensions = {
 				firstColumnOfSelection,
 				firstRowOfSelection,
 				lastColumnOfSelection,
 				lastRowOfSelection
 			};
-			const pastedDimensions = {
-				width: pasteWidth,
-				height: pasteHeight
-			};
 
 			replaceSelectedCellsWithPasted( pastedTable, pastedDimensions, selectedTable, selectionDimensions, writer );
 		} );