Browse Source

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

Marek Lewandowski 5 năm trước cách đây
mục cha
commit
55f95c0a53
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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 );