Changes between Version 1 and Version 2 of Ticket #14659, comment 3


Ignore:
Timestamp:
Jul 25, 2016, 10:40:45 AM (9 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14659, comment 3

    v1 v2  
    1919        var dialogName = ev.data.name;
    2020        var dialogDefinition = ev.data.definition;                                     
    21         if ( dialogName == 'link' ) {   //code fired for specific dialog               
     21        if ( dialogName == 'link' || dialogName == 'tableProperties' || dialogName == 'table'  ) {      //code fired for specific dialog               
     22                var oldOnCancel = dialogDefinition.onCancel;
    2223                dialogDefinition.onCancel = function( ) {
    23                         if( CKEDITOR.plugins.loaded.divarea ) {
     24                        if( CKEDITOR.plugins.loaded.divarea ) {                                                 
    2425                                var selection = editor.getSelection(),
    2526                                range = selection.getRanges()[ 0 ];
    2627                                range.select();
    2728                        }       
     29                       
     30                        if( oldOnCancel )
     31                                oldOnCancel.apply(this);
    2832                };
    2933        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy