X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fcommanddefinition.js;h=c4512743c8b380cfa7f2f1aff3daef12a19095c4;hb=refs%2Ftags%2Fv3.3;hp=b17849819832622be389ddc6ef29a8e4e7e56d4f;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/core/commanddefinition.js b/_source/core/commanddefinition.js index b178498..c451274 100644 --- a/_source/core/commanddefinition.js +++ b/_source/core/commanddefinition.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -70,3 +70,33 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * async : true // The command need some time to complete after exec function returns. * }); */ + +/** + * Whether the command should give focus to the editor before execution. + * @name CKEDITOR.commandDefinition.editorFocus + * @type {Boolean} + * @example + * editorInstance.addCommand( 'maximize', + * { + * exec : function( editor ) + * { + * }, + * editorFocus : false // The command doesn't require focusing the editing document. + * }); + */ + + +/** + * Whether the command state should be set to {@link CKEDITOR.TRISTATE_DISABLED} on startup. + * @name CKEDITOR.commandDefinition.startDisabled + * @type {Boolean} + * @default false + * @example + * editorInstance.addCommand( 'unlink', + * { + * exec : function( editor ) + * { + * }, + * startDisabled : true // Command is unavailable until selection is inside a link. + * }); + */