|
@@ -795,11 +795,13 @@ function moveCellsToRow( table, targetRowIndex, cellsToMove, writer ) {
|
|
|
startRow: targetRowIndex,
|
|
startRow: targetRowIndex,
|
|
|
endRow: targetRowIndex
|
|
endRow: targetRowIndex
|
|
|
} );
|
|
} );
|
|
|
|
|
+
|
|
|
|
|
+ const tableRowMap = [ ...tableWalker ];
|
|
|
const row = table.getChild( targetRowIndex );
|
|
const row = table.getChild( targetRowIndex );
|
|
|
|
|
|
|
|
let previousCell;
|
|
let previousCell;
|
|
|
|
|
|
|
|
- for ( const { column, cell, isSpanned } of tableWalker ) {
|
|
|
|
|
|
|
+ for ( const { column, cell, isSpanned } of tableRowMap ) {
|
|
|
if ( cellsToMove.has( column ) ) {
|
|
if ( cellsToMove.has( column ) ) {
|
|
|
const { cell: cellToMove, rowspan } = cellsToMove.get( column );
|
|
const { cell: cellToMove, rowspan } = cellsToMove.get( column );
|
|
|
|
|
|