Procházet zdrojové kódy

Fix: Inserting table column at first col-row spanned cell should work properly.

Kuba Niegowski před 5 roky
rodič
revize
865d33e002
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/ckeditor5-table/src/tableutils.js

+ 1 - 1
packages/ckeditor5-table/src/tableutils.js

@@ -228,7 +228,7 @@ export default class TableUtils extends Plugin {
 				const rowspan = parseInt( cell.getAttribute( 'rowspan' ) || 1 );
 				const colspan = parseInt( cell.getAttribute( 'colspan' ) || 1 );
 
-				if ( cell.index !== insertAt && colspan > 1 ) {
+				if ( cellIndex !== insertAt && colspan > 1 ) {
 					// If column is different than `insertAt`, it is a cell that spans over an inserted column (cell "a" & "i").
 					// For such cells expand them by a number of columns inserted.
 					writer.setAttribute( 'colspan', colspan + columnsToInsert, cell );