diff --git a/core/command.js b/core/command.js index 0cb6d231462..688d17c4ae2 100644 --- a/core/command.js +++ b/core/command.js @@ -79,8 +79,9 @@ CKEDITOR.command = function( editor, commandDefinition ) { return true; } - // Make the "enabled" state as basis. - this.enable(); + // Make the "enabled" state a default for commands enabled from start. + if ( !this.startDisabled ) + this.enable(); if ( this.fire( 'refresh', { editor: editor, path: path } ) === false ) return true; diff --git a/plugins/save/plugin.js b/plugins/save/plugin.js index 96348b623b0..03d8bde3a57 100644 --- a/plugins/save/plugin.js +++ b/plugins/save/plugin.js @@ -10,6 +10,7 @@ (function() { var saveCmd = { readOnly: 1, + startDisabled: true, exec: function( editor ) { if ( editor.fire( 'save' ) ) { diff --git a/plugins/undo/plugin.js b/plugins/undo/plugin.js index 49c5de3b291..083b90c422d 100644 --- a/plugins/undo/plugin.js +++ b/plugins/undo/plugin.js @@ -23,6 +23,7 @@ this.fire( 'afterUndo' ); } }, + startDisabled: true, canUndo: false } ); @@ -33,6 +34,7 @@ this.fire( 'afterRedo' ); } }, + startDisabled: true, canUndo: false } );