JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / image / dialogs / image.js
index 4ebfd16..d8eb581 100644 (file)
@@ -575,7 +575,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                        id : 'txtAlt',\r
                                                        type : 'text',\r
                                                        label : editor.lang.image.alt,\r
-                                                       accessKey : 'A',\r
+                                                       accessKey : 'T',\r
                                                        'default' : '',\r
                                                        onChange : function()\r
                                                        {\r
@@ -664,7 +664,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                                                                                                        element.setStyle( 'width',  oImageOriginal.$.width + 'px');\r
                                                                                                                                        }\r
                                                                                                                                        else\r
-                                                                                                                                               element.setStyle( 'width', value + 'px');\r
+                                                                                                                                               element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) );\r
                                                                                                                                }\r
                                                                                                                                else if ( type == CLEANUP )\r
                                                                                                                                {\r
@@ -715,7 +715,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                                                                                                        element.setStyle( 'height', oImageOriginal.$.height + 'px' );\r
                                                                                                                                        }\r
                                                                                                                                        else\r
-                                                                                                                                               element.setStyle( 'height', value + 'px' );\r
+                                                                                                                                               element.setStyle( 'height',  CKEDITOR.tools.cssLength( value ) );\r
                                                                                                                                }\r
                                                                                                                                else if ( type == CLEANUP )\r
                                                                                                                                {\r