JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / find / dialogs / find.js
index ccf4cf6..5fb9c6e 100644 (file)
@@ -628,6 +628,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                },\r
                                                                {\r
                                                                        type : 'button',\r
+                                                                       id : 'btnFind',\r
                                                                        align : 'left',\r
                                                                        style : 'width:100%',\r
                                                                        label : lang.find,\r
@@ -693,6 +694,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                },\r
                                                                {\r
                                                                        type : 'button',\r
+                                                                       id : 'btnFindReplace',\r
                                                                        align : 'left',\r
                                                                        style : 'width:100%',\r
                                                                        label : lang.replace,\r
@@ -726,6 +728,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                },\r
                                                                {\r
                                                                        type : 'button',\r
+                                                                       id : 'btnReplaceAll',\r
                                                                        align : 'left',\r
                                                                        style : 'width:100%',\r
                                                                        label : lang.replaceAll,\r
@@ -851,6 +854,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                finder.searchRange = getSearchRange();\r
 \r
                                this.selectPage( startupPage );\r
+\r
+                               this[ ( startupPage == 'find' && this._.editor.readOnly? 'hide' : 'show' ) + 'Page' ]( 'replace');\r
                        },\r
                        onHide : function()\r
                        {\r