Ticket #7569: 7569_3.patch

File 7569_3.patch, 2.2 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
     
    780776                                                                                                                                                        updatePreview( this );
    781777                                                                                                                                                }
    782778                                                                                                                                        }
    783                                                                                                                                         evt.data.preventDefault();
     779                                                                                                                                        evt.data && evt.data.preventDefault();
    784780                                                                                                                                }, this.getDialog() );
    785781                                                                                                                        ratioButton.on( 'mouseover', function()
    786782                                                                                                                                {
     
    793789                                                                                                                }
    794790                                                                                                        },
    795791                                                                                                        html : '<div>'+
    796                                                                                                                 '<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>' +
     792                                                                                                                '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.lockRatio +
     793                                                                                                                '" class="cke_btn_locked" id="' + btnLockSizesId + '" role="checkbox"><span class="cke_label">' + editor.lang.image.lockRatio + '</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

     
    413413                upload          : 'Upload',
    414414                alt                     : 'Alternative Text',
    415415                lockRatio       : 'Lock Ratio',
    416                 unlockRatio     : 'Unlock Ratio',
    417416                resetSize       : 'Reset Size',
    418417                border          : 'Border',
    419418                hSpace          : 'HSpace',
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy