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

Use typing.undoStep config in DeleteCommand.

Krzysztof Krztoń 9 лет назад
Родитель
Сommit
77318d8127

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