Ticket #7569: 7569.patch

File 7569.patch, 1.8 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/image/dialogs/image.js

     
    158158                        else
    159159                                ratioButton.addClass( 'cke_btn_unlocked' );
    160160
    161                         var lang = dialog._.editor.lang.image,
    162                                 label =  lang[  dialog.lockRatio ? 'unlockRatio' : 'lockRatio' ];
     161                        ratioButton.setAttribute( 'aria-checked', !dialog.lockRatio );
    163162
    164                         ratioButton.setAttribute( 'title', label );
    165                         ratioButton.getFirst().setText( label );
    166 
    167163                        return dialog.lockRatio;
    168164                };
    169165
     
    794790                                                                                                        },
    795791                                                                                                        html : '<div>'+
    796792                                                                                                                '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.unlockRatio +
    797                                                                                                                 '" class="cke_btn_locked" id="' + btnLockSizesId + '" role="button"><span class="cke_label">' + editor.lang.image.unlockRatio + '</span></a>' +
     793                                                                                                                '" class="cke_btn_locked" id="' + btnLockSizesId + '" role="checkbox"><span class="cke_label">' + editor.lang.image.unlockRatio + '</span></a>' +
    798794                                                                                                                '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.resetSize +
    799795                                                                                                                '" class="cke_btn_reset" id="' + btnResetSizeId + '" role="button"><span class="cke_label">' + editor.lang.image.resetSize + '</span></a>'+
    800796                                                                                                                '</div>'
  • _source/lang/en.js

     
    412412                btnUpload       : 'Send it to the Server',
    413413                upload          : 'Upload',
    414414                alt                     : 'Alternative Text',
    415                 lockRatio       : 'Lock Ratio',
    416415                unlockRatio     : 'Unlock Ratio',
    417416                resetSize       : 'Reset Size',
    418417                border          : 'Border',
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy