Index: /CKEditor/branches/prototype/_source/plugins/find/dialogs/find.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/find/dialogs/find.js (revision 2683)
+++ /CKEditor/branches/prototype/_source/plugins/find/dialogs/find.js (revision 2684)
@@ -21,5 +21,5 @@
-findDialog = function( editor, startupTab )
+findDialog = function( editor, startupPage )
{
return {
@@ -38,16 +38,11 @@
{
type : 'hbox',
- widths : [ '90px', '190px', '100px' ],
+ widths : [ '230px', '90px' ],
children :
[
{
- type : 'html',
- align : 'center',
- html : '' + CKEDITOR.tools.htmlEncode( editor.lang.dlgReplaceFindLbl ) + ''
- },
- {
type : 'text',
id : 'txtFindFind',
- label : '',
+ label : editor.lang.dlgReplaceFindLbl,
isChanged : false,
labelLayout : 'horizontal',
@@ -56,5 +51,6 @@
{
type : 'button',
- align : 'center',
+ align : 'left',
+ style : 'width:100%',
label : editor.lang.dlgFindFindBtn,
onClick : function()
@@ -86,16 +82,11 @@
{
type : 'hbox',
- widths : [ '90px', '200px', '90px' ],
+ widths : [ '230px', '90px' ],
children :
[
{
- type : 'html',
- align : 'center',
- html : '' + CKEDITOR.tools.htmlEncode( editor.lang.dlgReplaceFindLbl ) + ''
- },
- {
type : 'text',
id : 'txtFindReplace',
- label : '',
+ label : editor.lang.dlgReplaceFindLbl,
isChanged : false,
labelLayout : 'horizontal',
@@ -104,5 +95,6 @@
{
type : 'button',
- align : 'center',
+ align : 'left',
+ style : 'width:100%',
label : editor.lang.dlgReplaceReplaceBtn,
onClick : function()
@@ -115,16 +107,11 @@
{
type : 'hbox',
- widths : [ '90px', '200px', '90px' ],
+ widths : [ '230px', '90px' ],
children :
[
{
- type : 'html',
- align : 'center',
- html : '' + CKEDITOR.tools.htmlEncode( editor.lang.dlgReplaceReplaceLbl ) + ''
- },
- {
type : 'text',
id : 'txtReplace',
- label : '',
+ label : editor.lang.dlgReplaceReplaceLbl,
isChanged : false,
labelLayout : 'horizontal',
@@ -133,5 +120,6 @@
{
type : 'button',
- align : 'center',
+ align : 'left',
+ style : 'width:100%',
label : editor.lang.dlgReplaceReplAllBtn,
isChanged : false,
@@ -157,5 +145,12 @@
]
}
- ]
+ ],
+ onShow : function()
+ {
+ if ( startupPage == 'replace' )
+ this.getContentElement( 'replace', 'txtFindReplace' ).focus();
+ else
+ this.getContentElement( 'find', 'txtFindFind' ).focus();
+ }
};
};