Parcourir la source

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

Marek Lewandowski il y a 5 ans
Parent
commit
55f95c0a53
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      packages/ckeditor5-table/src/commands/removerowcommand.js

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