JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _samples / api_dialog.html
index 2620625..1ccc542 100644 (file)
@@ -87,6 +87,13 @@ CKEDITOR.on( 'dialogDefinition', function( ev )
                                        }\r
                                ]\r
                        });\r
+\r
+                       // Rewrite the 'onFocus' handler to always focus 'url' field.\r
+                       dialogDefinition.onFocus = function()\r
+                       {\r
+                               var urlField = this.getContentElement( 'info', 'url' );\r
+                               urlField.select();\r
+                       };\r
                }\r
        });\r
 \r