JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / _source / plugins / image / dialogs / image.js
index 9c5f4e5..b194a5d 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -262,9 +262,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        previewImageId = numbering( 'previewImage' );\r
 \r
                return {\r
-                       title : ( dialogType == 'image' ) ? editor.lang.image.title : editor.lang.image.titleButton,\r
+                       title : editor.lang.image[ dialogType == 'image' ? 'title' : 'titleButton' ],\r
                        minWidth : 420,\r
-                       minHeight : CKEDITOR.env.ie && CKEDITOR.env.quirks?  360: 310,\r
+                       minHeight : 360,\r
                        onShow : function()\r
                        {\r
                                this.imageElement = false;\r
@@ -547,8 +547,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                                        {\r
                                                                                                if ( type == IMAGE && ( this.getValue() || this.isChanged() ) )\r
                                                                                                {\r
-                                                                                                       element.data( 'cke-saved-src', decodeURI( this.getValue() ) );\r
-                                                                                                       element.setAttribute( 'src', decodeURI( this.getValue() ) );\r
+                                                                                                       element.data( 'cke-saved-src', this.getValue() );\r
+                                                                                                       element.setAttribute( 'src', this.getValue() );\r
                                                                                                }\r
                                                                                                else if ( type == CLEANUP )\r
                                                                                                {\r
@@ -1102,9 +1102,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                {\r
                                                                        if ( this.getValue() || this.isChanged() )\r
                                                                        {\r
-                                                                               element.data( 'cke-saved-href', decodeURI( this.getValue() ) );\r
-                                                                               element.setAttribute( 'href', 'javascript:void(0)/*' +\r
-                                                                                       CKEDITOR.tools.getNextNumber() + '*/' );\r
+                                                                               var url = decodeURI( this.getValue() );\r
+                                                                               element.data( 'cke-saved-href', url );\r
+                                                                               element.setAttribute( 'href', url );\r
 \r
                                                                                if ( this.getValue() || !editor.config.image_removeLinkByEmptyURL )\r
                                                                                        this.getDialog().addLink = true;\r