Ticket #7569: 7569_3.patch
File 7569_3.patch, 2.2 KB (added by , 14 years ago) |
---|
-
_source/plugins/image/dialogs/image.js
158 158 else 159 159 ratioButton.addClass( 'cke_btn_unlocked' ); 160 160 161 var lang = dialog._.editor.lang.image, 162 label = lang[ dialog.lockRatio ? 'unlockRatio' : 'lockRatio' ]; 161 ratioButton.setAttribute( 'aria-checked', dialog.lockRatio ); 163 162 164 ratioButton.setAttribute( 'title', label );165 ratioButton.getFirst().setText( label );166 167 163 return dialog.lockRatio; 168 164 }; 169 165 … … 780 776 updatePreview( this ); 781 777 } 782 778 } 783 evt.data .preventDefault();779 evt.data && evt.data.preventDefault(); 784 780 }, this.getDialog() ); 785 781 ratioButton.on( 'mouseover', function() 786 782 { … … 793 789 } 794 790 }, 795 791 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>' + 798 794 '<a href="javascript:void(0)" tabindex="-1" title="' + editor.lang.image.resetSize + 799 795 '" class="cke_btn_reset" id="' + btnResetSizeId + '" role="button"><span class="cke_label">' + editor.lang.image.resetSize + '</span></a>'+ 800 796 '</div>' -
_source/lang/en.js
413 413 upload : 'Upload', 414 414 alt : 'Alternative Text', 415 415 lockRatio : 'Lock Ratio', 416 unlockRatio : 'Unlock Ratio',417 416 resetSize : 'Reset Size', 418 417 border : 'Border', 419 418 hSpace : 'HSpace',