X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fapi_dialog.html;h=1ccc542db81a6e05713c90f040b495fff4bd68fe;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hp=262062578bc44eb317b34bc053a51a39e3405fab;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_samples/api_dialog.html b/_samples/api_dialog.html index 2620625..1ccc542 100644 --- a/_samples/api_dialog.html +++ b/_samples/api_dialog.html @@ -87,6 +87,13 @@ CKEDITOR.on( 'dialogDefinition', function( ev ) } ] }); + + // Rewrite the 'onFocus' handler to always focus 'url' field. + dialogDefinition.onFocus = function() + { + var urlField = this.getContentElement( 'info', 'url' ); + urlField.select(); + }; } });