Sfoglia il codice sorgente

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

Szymon Cofalik 9 anni fa
parent
commit
361a956bed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 );