Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
38ccc4b70a

+ 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 => {