8
0
Эх сурвалжийг харах

Rename tableMap to selectedTableMap.

Maciej Gołaszewski 5 жил өмнө
parent
commit
c51cd4d64b

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

@@ -165,7 +165,7 @@ export default class TableClipboard extends Plugin {
 			// Content table to which we insert a pasted table.
 			const selectedTable = findAncestor( 'table', selectedTableCells[ 0 ] );
 
-			const tableMap = [ ...new TableWalker( selectedTable, {
+			const selectedTableMap = [ ...new TableWalker( selectedTable, {
 				startRow: firstRowOfSelection,
 				endRow: lastRowOfSelection,
 				includeSpanned: true
@@ -183,7 +183,7 @@ export default class TableClipboard extends Plugin {
 			// - Inserts cell from a pasted table for a matched slots.
 			//
 			// This ensures proper table geometry after the paste
-			for ( const { row, column, cell, isSpanned } of tableMap ) {
+			for ( const { row, column, cell, isSpanned } of selectedTableMap ) {
 				if ( column === 0 ) {
 					previousCellInRow = null;
 				}