Ticket #1878: 1878.patch

File 1878.patch, 1.0 kB (added by martinkou, 5 months ago)
  • editor/dialog/fck_replace.html

     
    5454// Place a range at the start of document. 
    5555// This will be the starting point of our search. 
    5656var GlobalRange = new oEditor.FCKDomRange( oEditor.FCK.EditorWindow ) ; 
    57 GlobalRange.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ; 
    58 GlobalRange.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ; 
    59 GlobalRange.Collapse( true ) ; 
    6057 
     58function ResetGlobalRange() 
     59{ 
     60        GlobalRange.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ; 
     61        GlobalRange.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ; 
     62        GlobalRange.Collapse( true ) ; 
     63} 
     64ResetGlobalRange() ; 
     65 
    6166var HighlightRange = null ; 
    6267function Highlight() 
    6368{ 
     
    388393                                focus.scrollIntoView( false ) ; 
    389394                } 
    390395 
    391                 return true; 
     396                return true ; 
    392397        } 
    393398        else 
    394                 return false; 
     399        { 
     400                ResetGlobalRange() ; 
     401                return false ; 
     402        } 
    395403} 
    396404 
    397405function Find()