Sfoglia il codice sorgente

Changed: Iterate over a row only of inserted table cell in downcast conversion.

Maciej Gołaszewski 7 anni fa
parent
commit
3b4a7f65f2
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      packages/ckeditor5-table/src/converters/downcast.js

+ 2 - 1
packages/ckeditor5-table/src/converters/downcast.js

@@ -134,8 +134,9 @@ export function downcastInsertCell( options = {} ) {
 
 		const tableRow = tableCell.parent;
 		const table = tableRow.parent;
+		const rowIndex = table.getChildIndex( tableRow );
 
-		const tableWalker = new TableWalker( table );
+		const tableWalker = new TableWalker( table, { startRow: rowIndex, endRow: rowIndex } );
 
 		const tableAttributes = {
 			headingRows: parseInt( table.getAttribute( 'headingRows' ) || 0 ),