Procházet zdrojové kódy

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

Maciej Gołaszewski před 7 roky
rodič
revize
3b4a7f65f2

+ 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 ),