Ticket #635: 653_ref.patch

File 653_ref.patch, 1.8 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/link/plugin.js

     
    9595                                });
    9696                }
    9797
     98                editor.on( 'doubleclick', function( evt )
     99                {
     100                        if ( evt.data.element.getAscendant( 'a', true ) )
     101                                evt.data.dialog = 'link';
     102                });
     103               
    98104                // If the "contextmenu" plugin is loaded, register the listeners.
    99105                if ( editor.contextMenu )
    100106                {
  • _source/plugins/wysiwygarea/plugin.js

     
    380380                                                        } );
    381381                                                }
    382382
     383                                                domDocument.on( 'dblclick', function( ev )
     384                                                {
     385                                                        var element = ev.data.getTarget(),
     386                                                                        data = { element : element, dialog : '' };
     387                                                        editor.fire( 'doubleclick', data );
     388                                                        data.dialog && editor.openDialog( data.dialog );
     389                                                });
     390
    383391                                                // Webkit: avoid from editing form control elements content.
    384392                                                if ( CKEDITOR.env.webkit )
    385393                                                {
  • _source/plugins/image/plugin.js

     
    2222                // Register the toolbar button.
    2323                editor.ui.addButton( 'Image',
    2424                        {
     25
    2526                                label : editor.lang.common.image,
    2627                                command : pluginName
    2728                        });
     
    4041                                });
    4142                }
    4243
     44                editor.on( 'doubleclick', function( evt )
     45                {
     46                        if ( evt.data.element.is( 'img' ) )
     47                                evt.data.dialog ='image';
     48                });
     49
    4350                // If the "contextmenu" plugin is loaded, register the listeners.
    4451                if ( editor.contextMenu )
    4552                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy