Explorar el Código

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

Maciej Gołaszewski hace 7 años
padre
commit
3b4a7f65f2
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 ),