Преглед на файлове

Merge pull request #81 from ckeditor/t/79

Fix: Use `typing.undoStep` in both `InputCommand` and `DeleteCommand`. Closes #79.

BREAKING CHANGE: The `undo.step` configuration option was replaced by `typing.undoStep` in `DeleteCommand`. See #79.
Piotrek Koszuliński преди 8 години
родител
ревизия
38ccc4b70a
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      packages/ckeditor5-typing/src/deletecommand.js
  2. 2 2
      packages/ckeditor5-typing/tests/deletecommand-integration.js

+ 1 - 1
packages/ckeditor5-typing/src/deletecommand.js

@@ -45,7 +45,7 @@ export default class DeleteCommand extends Command {
 		 * @private
 		 * @member {typing.ChangeBuffer} #buffer
 		 */
-		this._buffer = new ChangeBuffer( editor.document, editor.config.get( 'undo.step' ) );
+		this._buffer = new ChangeBuffer( editor.document, editor.config.get( 'typing.undoStep' ) );
 	}
 
 	/**

+ 2 - 2
packages/ckeditor5-typing/tests/deletecommand-integration.js

@@ -16,8 +16,8 @@ describe( 'DeleteCommand integration', () => {
 				plugins: [
 					UndoEngine
 				],
-				undo: {
-					step: 3
+				typing: {
+					undoStep: 3
 				}
 			} )
 			.then( newEditor => {