X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fimage%2Fdialogs%2Fimage.js;h=8902f9b3c0d5f4035659e946add277373cd1d8d9;hb=refs%2Ftags%2Fv3.6.2;hp=3833e03ffdab6e89b1782bcd045e845448918501;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba;p=ckeditor.git diff --git a/_source/plugins/image/dialogs/image.js b/_source/plugins/image/dialogs/image.js index 3833e03..8902f9b 100644 --- a/_source/plugins/image/dialogs/image.js +++ b/_source/plugins/image/dialogs/image.js @@ -158,11 +158,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license else ratioButton.addClass( 'cke_btn_unlocked' ); - var lang = dialog._.editor.lang.image, - label = lang[ dialog.lockRatio ? 'unlockRatio' : 'lockRatio' ]; + ratioButton.setAttribute( 'aria-checked', dialog.lockRatio ); - ratioButton.setAttribute( 'title', label ); - ratioButton.getFirst().setText( label ); + // Ratio button hc presentation - WHITE SQUARE / BLACK SQUARE + if ( CKEDITOR.env.hc ) + { + var icon = ratioButton.getChild( 0 ); + icon.setHtml( dialog.lockRatio ? CKEDITOR.env.ie ? '\u25A0': '\u25A3' : CKEDITOR.env.ie ? '\u25A1' : '\u25A2' ); + } return dialog.lockRatio; }; @@ -780,7 +783,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license updatePreview( this ); } } - evt.data.preventDefault(); + evt.data && evt.data.preventDefault(); }, this.getDialog() ); ratioButton.on( 'mouseover', function() { @@ -793,8 +796,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } }, html : '
'+ - '' + editor.lang.image.unlockRatio + '' + + '' + editor.lang.image.lockRatio + '' + '' + editor.lang.image.resetSize + ''+ '
' @@ -1346,6 +1349,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license type : 'text', id : 'txtdlgGenStyle', label : editor.lang.common.cssStyle, + validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), 'default' : '', setup : function( type, element ) {