]> git.immae.eu Git - perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git/blobdiff - sources/plugins/image/dialogs/image.js
Add oembed
[perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git] / sources / plugins / image / dialogs / image.js
index 4f62f99c8c6237f3c4d60be08007294f4a5db884..5302a7c77a341a05978427b557e491faf2627f02 100644 (file)
@@ -1,5 +1,5 @@
 /**\r
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
+ * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.\r
  * For licensing, see LICENSE.md or http://ckeditor.com/license\r
  */\r
 \r
 \r
                                        var oImageOriginal = dialog.originalElement;\r
 \r
-                                       // Dialog may already closed. (#5505)\r
+                                       // Dialog may already closed. (http://dev.ckeditor.com/ticket/5505)\r
                                        if ( !oImageOriginal )\r
                                                return null;\r
 \r
                                        this.firstLoad = false;\r
                                        this.dontResetSize = false;\r
 \r
-                                       // Possible fix for #12818.\r
+                                       // Possible fix for http://dev.ckeditor.com/ticket/12818.\r
                                        updatePreview( this );\r
                                };\r
 \r
 \r
                        return {\r
                                title: editor.lang.image[ dialogType == 'image' ? 'title' : 'titleButton' ],\r
-                               minWidth: 420,\r
+                               minWidth: ( CKEDITOR.skinName || editor.config.skin ) == 'moono-lisa' ? 500 : 420,\r
                                minHeight: 360,\r
                                onShow: function() {\r
                                        this.imageElement = false;\r
                                                this.linkEditMode = true;\r
 \r
                                                // If there is an existing link, by default keep it (true).\r
-                                               // It will be removed if certain conditions are met and Link tab is enabled. (#13351)\r
+                                               // It will be removed if certain conditions are met and Link tab is enabled. (http://dev.ckeditor.com/ticket/13351)\r
                                                this.addLink = true;\r
 \r
                                                // Look for Image element.\r
                                                        type: 'hbox',\r
                                                        widths: [ '280px', '110px' ],\r
                                                        align: 'right',\r
+                                                       className: 'cke_dialog_image_url',\r
                                                        children: [ {\r
                                                                id: 'txtUrl',\r
                                                                type: 'text',\r
                                                                                this.getDialog().dontResetSize = true;\r
 \r
                                                                                field.setValue( url ); // And call this.onChange()\r
-                                                                               // Manually set the initial value.(#4191)\r
+                                                                               // Manually set the initial value.(http://dev.ckeditor.com/ticket/4191)\r
                                                                                field.setInitValue();\r
                                                                        }\r
                                                                },\r
                                                                {\r
                                                                        id: 'ratioLock',\r
                                                                        type: 'html',\r
+                                                                       className: 'cke_dialog_image_ratiolock',\r
                                                                        style: 'margin-top:30px;width:40px;height:40px;',\r
                                                                        onLoad: function() {\r
                                                                                // Activate Reset button\r
                                        {\r
                                                type: 'button',\r
                                                id: 'browse',\r
+                                               className: 'cke_dialog_image_browse',\r
                                                filebrowser: {\r
                                                        action: 'Browse',\r
                                                        target: 'Link:txtUrl',\r