Ticket #5365: 5365.patch

File 5365.patch, 1.2 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/plugins/link/dialogs/link.js

     
    5151
    5252                if ( typeValue == 'url' )
    5353                {
    54                         if ( editor.config.linkShowTargetTab )
    55                                 dialog.showPage( 'target' );
     54                        dialog.showPage( 'target' );
    5655                        if ( !uploadInitiallyHidden )
    5756                                dialog.showPage( 'upload' );
    5857                }
     
    13631362                                delete this._.selectedElement;
    13641363                        }
    13651364                },
    1366                 onLoad : function()
    1367                 {
    1368                         if ( !editor.config.linkShowAdvancedTab )
    1369                                 this.hidePage( 'advanced' );            //Hide Advanded tab.
    1370 
    1371                         if ( !editor.config.linkShowTargetTab )
    1372                                 this.hidePage( 'target' );              //Hide Target tab.
    1373 
    1374                 },
    13751365                // Inital focus on 'url' field if link is of type URL.
    13761366                onFocus : function()
    13771367                {
  • _source/plugins/link/plugin.js

     
    212212        startDisabled : true
    213213};
    214214
    215 CKEDITOR.tools.extend( CKEDITOR.config,
    216 {
    217         linkShowAdvancedTab : true,
    218         linkShowTargetTab : true
    219 } );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy