X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fflash%2Fplugin.js;h=c76a7fe32c28283118b70994f02a2a7ac0b21b6e;hb=refs%2Ftags%2Fv3.3.2;hp=29117ba231d21f2126d4f410fa6295c2edf2080f;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/plugins/flash/plugin.js b/_source/plugins/flash/plugin.js index 29117ba..c76a7fe 100644 --- a/_source/plugins/flash/plugin.js +++ b/_source/plugins/flash/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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 ) { @@ -109,7 +117,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Look for the inner for ( var i = 0 ; i < element.children.length ; i++ ) { - if ( element.children[ i ].name == 'embed' ) + if ( element.children[ i ].name == 'cke:embed' ) { if ( !isFlashEmbed( element.children[ i ] ) ) return null;