X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fcommanddefinition.js;h=c4512743c8b380cfa7f2f1aff3daef12a19095c4;hb=refs%2Ftags%2Fv3.2.1;hp=bd8989c19926e9050067dd45b6142a1c923e0738;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/core/commanddefinition.js b/_source/core/commanddefinition.js index bd8989c..c451274 100644 --- a/_source/core/commanddefinition.js +++ b/_source/core/commanddefinition.js @@ -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. + * }); + */