X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fflash%2Fplugin.js;h=c76a7fe32c28283118b70994f02a2a7ac0b21b6e;hp=41814e3d67320b3bf89cf95bd2d766b046e7219b;hb=f8fc585c18d287eb325c575596d183122486b641;hpb=8665a7c6c60586526e32e8941fe2896739b6ebfb diff --git a/_source/plugins/flash/plugin.js b/_source/plugins/flash/plugin.js index 41814e3..c76a7fe 100644 --- a/_source/plugins/flash/plugin.js +++ b/_source/plugins/flash/plugin.js @@ -77,6 +77,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license }); } + editor.on( 'doubleclick', function( evt ) + { + var element = evt.data.element; + + if ( element.is( 'img' ) && element.getAttribute( '_cke_real_element_type' ) == 'flash' ) + evt.data.dialog = 'flash'; + }); + // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu ) {