Changeset 410 for FCKeditor/trunk/editor/dialog/fck_replace.html
- Timestamp:
- 2007-07-05 15:55:49 (18 months ago)
- Files:
-
- 1 modified
-
FCKeditor/trunk/editor/dialog/fck_replace.html (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/dialog/fck_replace.html
r408 r410 33 33 function OnLoad() 34 34 { 35 // First of all, translate the dialog box texts 35 // First of all, translate the dialog box texts. 36 36 oEditor.FCKLanguageManager.TranslatePage( document ) ; 37 37 38 38 window.parent.SetAutoSize( true ) ; 39 40 // Place the cursor at the start of document. 41 // This will be the starting point of our search. 42 var range = new oEditor.FCKDomRange( oEditor.FCK.EditorWindow ) ; 43 range.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ; 44 range.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ; 45 range.Collapse( true ) ; 46 range.Select() ; 39 47 } 40 48 … … 141 149 case 0x202f: 142 150 case 0x205f: 143 case 3000:151 case 0x3000: 144 152 return true; 145 153 default: … … 177 185 while ( true ) 178 186 { 179 if ( c == this.Pattern [ this._State ])187 if ( c == this.Pattern.charAt( this._State ) ) 180 188 { 181 189 this._State++ ; … … 309 317 selection.Collapse( false ) ; 310 318 selection.Select() ; 311 oEditor.FCK.EditorDocument.body.normalize() ;312 319 } 313 320 } … … 317 324 oEditor.FCKUndo.SaveUndoStep() ; 318 325 319 var range = new oEditor.FCKDomRange( oEditor.FCK.EditorWindow ) ;320 range.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ;321 range.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ;322 range.Collapse( true ) ;323 range.Select() ;324 326 var replaceCount = 0 ; 325 327 … … 335 337 if ( replaceCount == 0 ) 336 338 alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ; 337 else338 oEditor.FCK.EditorDocument.body.normalize() ;339 339 window.parent.Cancel() ; 340 340 }