8
0
Просмотр исходного кода

WiP: Test using transparent batch in undo commands.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
0815ad9063
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/ckeditor5-engine/src/model/model.js

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

@@ -702,10 +702,11 @@ export default class Model {
 	 * * {@link #change `change()`},
 	 * * {@link #enqueueChange `enqueueChange()`}.
 	 *
+	 * @param {'transparent'|'default'} [type='default'] The type of the batch.
 	 * @returns {module:engine/model/batch~Batch}
 	 */
-	createBatch() {
-		return new Batch();
+	createBatch( type ) {
+		return new Batch( type );
 	}
 
 	/**