X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fcommanddefinition.js;h=bd8989c19926e9050067dd45b6142a1c923e0738;hb=941b0a9ba4e673e292510d80a5a86806994b8ea6;hp=b17849819832622be389ddc6ef29a8e4e7e56d4f;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/core/commanddefinition.js b/_source/core/commanddefinition.js index b178498..bd8989c 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,17 @@ 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. + * }); + */