X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fundo%2Fplugin.js;h=b78995ca10d7daf6d6d8fd0532796beef30b4dfd;hp=fde581f07014eb0e599f49a164c0a4d6e0722a5c;hb=039a051ccf3901311661022a30afd60fc38130c9;hpb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7 diff --git a/_source/plugins/undo/plugin.js b/_source/plugins/undo/plugin.js index fde581f..b78995c 100644 --- a/_source/plugins/undo/plugin.js +++ b/_source/plugins/undo/plugin.js @@ -133,7 +133,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license editor.on( 'updateSnapshot', function() { if ( undoManager.currentImage && new Image( editor ).equals( undoManager.currentImage ) ) - setTimeout( function () { undoManager.update(); }, 0 ); + setTimeout( function() { undoManager.update(); }, 0 ); }); } }); @@ -339,7 +339,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ this.index = -1; - this.limit = this.editor.config.undoStackSize; + this.limit = this.editor.config.undoStackSize || 20; this.currentImage = null; @@ -545,7 +545,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * @example * config.undoStackSize = 50; */ -CKEDITOR.config.undoStackSize = 20; /** * Fired when the editor is about to save an undo snapshot. This event can be