Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #81 from ckeditor/t/79
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Reinmar authored Mar 7, 2017
2 parents 4bb68dc + 068d6b5 commit c597467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/deletecommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/deletecommand-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ describe( 'DeleteCommand integration', () => {
plugins: [
UndoEngine
],
undo: {
step: 3
typing: {
undoStep: 3
}
} )
.then( newEditor => {
Expand Down

0 comments on commit c597467

Please sign in to comment.