Ticket #635: 635.patch

File 635.patch, 1.4 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/image/plugin.js

     
    1919                // Register the command.
    2020                editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) );
    2121
     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
    2231                // Register the toolbar button.
    2332                editor.ui.addButton( 'Image',
    2433                        {
  • _source/plugins/wysiwygarea/plugin.js

     
    267267                                                                editor.focusManager.focus();
    268268                                                        });
    269269
     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
    270283                                                var keystrokeHandler = editor.keystrokeHandler;
    271284                                                if ( keystrokeHandler )
    272285                                                        keystrokeHandler.attach( domDocument );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy