Ticket #635: 635_5.patch
File 635_5.patch, 2.5 KB (added by , 14 years ago) |
---|
-
_source/plugins/image/plugin.js
25 25 label : editor.lang.common.image, 26 26 command : pluginName 27 27 }); 28 29 editor.on( 'doubleclick', function( evt ) 30 { 31 var element = evt.data.element, 32 realElement = element.getAttribute( '_cke_real_element_type' ); 33 34 if ( element.is( 'img' ) ) 35 evt.data.dialog = realElement ? realElement : 'image'; 36 }); 28 37 29 38 // If the "menu" plugin is loaded, register the menu items. 30 39 if ( editor.addMenuItems ) -
_source/plugins/link/plugin.js
51 51 ); 52 52 53 53 // Register selection change handler for the unlink button. 54 54 editor.on( 'selectionChange', function( evt ) 55 55 { 56 56 /* 57 57 * Despite our initial hope, document.queryCommandEnabled() does not work … … 64 64 else 65 65 command.setState( CKEDITOR.TRISTATE_DISABLED ); 66 66 } ); 67 67 68 editor.on( 'doubleclick', function( evt ) 69 { 70 var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element; 71 72 if ( element.is( 'a' ) ) 73 evt.data.dialog = ( element.getAttribute( 'name' ) && !element.getAttribute( 'href' ) ) ? 'anchor' : 'link'; 74 }); 75 68 76 // If the "menu" plugin is loaded, register the menu items. 69 77 if ( editor.addMenuItems ) 70 78 { -
_source/plugins/wysiwygarea/plugin.js
383 383 384 384 domWindow = editor.window = new CKEDITOR.dom.window( domWindow ); 385 385 domDocument = editor.document = new CKEDITOR.dom.document( domDocument ); 386 387 domDocument.on( 'dblclick', function( ev ) 388 { 389 var element = ev.data.getTarget(), 390 data = { element : element, dialog : '' }; 391 editor.fire( 'doubleclick', data ); 392 data.dialog && editor.openDialog( data.dialog ); 393 }); 386 394 387 395 // Gecko/Webkit need some help when selecting control type elements. (#3448) 388 396 if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera) )