Ticket #1530: 1530_2.patch

File 1530_2.patch, 2.1 kB (added by martinkou, 8 months ago)
  • _whatsnew.html

     
    9393                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1717">#1717</a>] The editor 
    9494                        was entering on looping on some specific cases when dealing with invalid source 
    9595                        markup.</li> 
     96                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1530">#1530</a>] Pasting text into the 
     97                        "Find what" fields in the Find and Replace dialog would now activate the find and replace  
     98                        buttons.</li> 
    9699        </ul> 
    97100        <p> 
    98101                <a href="_whatsnew_history.html">See previous versions history</a> 
  • editor/dialog/fck_replace.html

     
    9595        SelectField( 'txtFind' + dialogArguments.CustomValue ) ; 
    9696} 
    9797 
    98 function btnStat(frm) 
     98function btnStat() 
    9999{ 
    100100        document.getElementById('btnReplace').disabled = 
    101101                document.getElementById('btnReplaceAll').disabled = 
     
    103103                                ( document.getElementById(idMap["FindText"]).value.length == 0 ) ; 
    104104} 
    105105 
     106function btnStatDelayed() 
     107{ 
     108        setTimeout( btnStat, 1 ) ; 
     109} 
     110 
    106111function GetSearchString() 
    107112{ 
    108113        return document.getElementById(idMap['FindText']).value ; 
     
    441446                                                Find what:</label> 
    442447                                </td> 
    443448                                <td width="100%"> 
    444                                         <input id="txtFindFind" onkeyup="btnStat(this.form)" style="width: 100%" tabindex="1" 
     449                                        <input id="txtFindFind" onkeyup="btnStat()" oninput="btnStat()" onpaste="btnStatDelayed()" style="width: 100%" tabindex="1" 
    445450                                                type="text" /> 
    446451                                </td> 
    447452                                <td> 
     
    468473                                                Find what:</label> 
    469474                                </td> 
    470475                                <td width="100%"> 
    471                                         <input id="txtFindReplace" onkeyup="btnStat(this.form)" style="width: 100%" tabindex="1" 
     476                                        <input id="txtFindReplace" onkeyup="btnStat()" oninput="btnStat()" onpaste="btnStatDelayed()" style="width: 100%" tabindex="1" 
    472477                                                type="text" /> 
    473478                                </td> 
    474479                                <td>