Przeglądaj źródła

Change block now creates writer.

Piotr Jasiun 8 lat temu
rodzic
commit
614e482f84
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      packages/ckeditor5-engine/src/model/model.js

+ 2 - 1
packages/ckeditor5-engine/src/model/model.js

@@ -8,6 +8,7 @@
  */
 
 import Batch from './batch';
+import Writer from './writer';
 import Schema from './schema';
 import Document from './document';
 import MarkerCollection from './markercollection';
@@ -70,7 +71,7 @@ export default class Model {
 		const ret = [];
 
 		while ( this._pendingChanges.length ) {
-			this._currentWriter = this._pendingChanges[ 0 ].batch;
+			this._currentWriter = new Writer( this, this._pendingChanges[ 0 ].batch );
 
 			ret.push( this._pendingChanges[ 0 ].callback( this._currentWriter ) );