Ticket #2016: 2016.patch

File 2016.patch, 2.0 kB (added by fredck, 4 months ago)
  • _whatsnew.html

     
    6767                        Fixed XHTML source formatting errors in non-IE browsers.</li> 
    6868                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2000">#2000</a>] The # 
    6969                        character is now properly encoded in file names returned by the File Browser.</li> 
     70                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2016">#2016</a>] The Link 
     71                        dialog now properly select the first field when opening it to modify mailto or anchor 
     72                        links. This problem was also throwing an error in IE.</li> 
    7073        </ul> 
    7174        <h3> 
    7275                Version 2.6 Beta 1</h3> 
  • editor/dialog/common/fck_dialog_common.js

     
    104104{ 
    105105        var element = GetE( elementId ) ; 
    106106        element.focus() ; 
    107         element.select() ; 
     107 
     108        // element.select may not be available for some fields (like <select>). 
     109        if ( element.select ) 
     110                element.select() ; 
    108111} 
    109112 
    110113// Functions used by text fields to accept numbers only. 
  • editor/dialog/fck_link/fck_link.js

     
    159159 
    160160        // Activate the "OK" button. 
    161161        dialog.SetOkButton( true ) ; 
    162         SelectField( 'txtUrl' ) ; 
     162         
     163        // Select the first field. 
     164        switch( GetE('cmbLinkType').value ) 
     165        { 
     166                case 'url' : 
     167                        SelectField( 'txtURL' ) ; 
     168                        break ; 
     169                case 'email' : 
     170                        SelectField( 'txtEMailAddress' ) ; 
     171                        break ; 
     172                case 'anchor' :  
     173                        if ( GetE('divSelAnchor').style.display != 'none' ) 
     174                                SelectField( 'cmbAnchorName' ) ; 
     175                        else 
     176                                SelectField( 'cmbLinkType' ) ; 
     177        } 
    163178} 
    164179 
    165180var bHasAnchors ;