X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ffind%2Fdialogs%2Ffind.js;h=5fb9c6ea9c5fe11df132099746e0862c3b504809;hb=4e70ea24db840898be8cc21c950363a52a2a6aba;hp=c0f7d3734041842349fd94e7f0bfd9f2e97026c6;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/plugins/find/dialogs/find.js b/_source/plugins/find/dialogs/find.js index c0f7d37..5fb9c6e 100644 --- a/_source/plugins/find/dialogs/find.js +++ b/_source/plugins/find/dialogs/find.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -604,7 +604,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license title : lang.title, resizable : CKEDITOR.DIALOG_RESIZE_NONE, minWidth : 350, - minHeight : 165, + minHeight : 170, buttons : [ CKEDITOR.dialog.cancelButton ], // Cancel button only. contents : [ { @@ -628,6 +628,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license }, { type : 'button', + id : 'btnFind', align : 'left', style : 'width:100%', label : lang.find, @@ -693,6 +694,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license }, { type : 'button', + id : 'btnFindReplace', align : 'left', style : 'width:100%', label : lang.replace, @@ -726,6 +728,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license }, { type : 'button', + id : 'btnReplaceAll', align : 'left', style : 'width:100%', label : lang.replaceAll, @@ -851,6 +854,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license finder.searchRange = getSearchRange(); this.selectPage( startupPage ); + + this[ ( startupPage == 'find' && this._.editor.readOnly? 'hide' : 'show' ) + 'Page' ]( 'replace'); }, onHide : function() {