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