浏览代码

Fixed: Undo step generation callback should be called before everything else, when change is done on model.

Szymon Cofalik 9 年之前
父节点
当前提交
361a956bed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-undo/src/undoengine.js

+ 1 - 1
packages/ckeditor5-undo/src/undoengine.js

@@ -78,7 +78,7 @@ export default class UndoEngine extends Feature {
 
 			// Add the batch to the registry so it will not be processed again.
 			this._batchRegistry.add( batch );
-		} );
+		}, { priority: 'highest' } );
 
 		this.listenTo( this._undoCommand, 'revert', ( evt, undoneBatch, undoingBatch ) => {
 			this._redoCommand.addBatch( undoingBatch );