Ticket #635: 635.patch
File 635.patch, 1.4 KB (added by , 15 years ago) |
---|
-
_source/plugins/image/plugin.js
19 19 // Register the command. 20 20 editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) ); 21 21 22 editor.on( 'dblclick', function( event ) 23 { 24 if ( event.data.object.getName() == 'img' ) 25 { 26 editor.openDialog( pluginName ); 27 event.cancel(); // Don't try other listeners. 28 } 29 }); 30 22 31 // Register the toolbar button. 23 32 editor.ui.addButton( 'Image', 24 33 { -
_source/plugins/wysiwygarea/plugin.js
267 267 editor.focusManager.focus(); 268 268 }); 269 269 270 focusTarget.on( 'dblclick', function( event ) 271 { 272 var data = event.data; 273 if ( data.$.target ) 274 { 275 editor.fire( 'dblclick', CKEDITOR.tools.extend( data.$, 276 { 277 object : data.getTarget() // Do it only once. 278 }) 279 ); 280 } 281 }); 282 270 283 var keystrokeHandler = editor.keystrokeHandler; 271 284 if ( keystrokeHandler ) 272 285 keystrokeHandler.attach( domDocument );