X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fcommanddefinition.js;h=c4512743c8b380cfa7f2f1aff3daef12a19095c4;hb=refs%2Ftags%2Fv3.3;hp=58fccf49ed74d72f76d5cece63c042b443bcb54f;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d;p=ckeditor.git diff --git a/_source/core/commanddefinition.js b/_source/core/commanddefinition.js index 58fccf4..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 */ @@ -84,3 +84,19 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * 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. + * }); + */