Răsfoiți Sursa

Internal: Adding an explanation why multiple model.change() calls are used.

Marek Lewandowski 5 ani în urmă
părinte
comite
55f95c0a53

+ 1 - 0
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -68,6 +68,7 @@ export default class RemoveRowCommand extends Command {
 		let cellToFocus;
 
 		for ( let i = removedRowIndexes.last; i >= removedRowIndexes.first; i-- ) {
+			// Doing model change with multiple calls, to get around ckeditor/ckeditor5#6391.
 			this.editor.model.change( writer => {
 				const removedRowIndex = i;
 				this._removeRow( removedRowIndex, table, writer, tableMap );