JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3
[ckeditor.git] / _source / plugins / image / plugin.js
index e6243b4..4c709b2 100644 (file)
@@ -26,6 +26,14 @@ CKEDITOR.plugins.add( 'image',
                                command : pluginName\r
                        });\r
 \r
+               editor.on( 'doubleclick', function( evt )\r
+                       {\r
+                               var element = evt.data.element;\r
+\r
+                               if ( element.is( 'img' ) && !element.getAttribute( '_cke_realelement' ) )\r
+                                       evt.data.dialog = 'image';\r
+                       });\r
+\r
                // If the "menu" plugin is loaded, register the menu items.\r
                if ( editor.addMenuItems )\r
                {\r