Ticket #6865: 6865.patch

File 6865.patch, 3.8 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/div/dialogs/div.js

     
    280280                }
    281281
    282282
     283                var dialogadvtab = editor.plugins.dialogadvtab;
    283284                // Registered 'CKEDITOR.style' instances.
    284285                var styles = {} ;
    285286                /**
     
    349350                                        }
    350351                                ]
    351352                        },
    352                         {
    353                                         id :'advanced',
    354                                         label :editor.lang.common.advancedTab,
    355                                         title :editor.lang.common.advancedTab,
    356                                         elements :
    357                                         [
    358                                         {
    359                                                 type :'vbox',
    360                                                 padding :1,
    361                                                 children :
    362                                                 [
    363                                                         {
    364                                                                 type :'hbox',
    365                                                                 widths : [ '50%', '50%' ],
    366                                                                 children :
    367                                                                 [
    368                                                                         {
    369                                                                                 type :'text',
    370                                                                                 id :'id',
    371                                                                                 label :editor.lang.common.id,
    372                                                                                 'default' : ''
    373                                                                         },
    374                                                                         {
    375                                                                                 type :'text',
    376                                                                                 id :'lang',
    377                                                                                 label :editor.lang.link.langCode,
    378                                                                                 'default' : ''
    379                                                                         }
    380                                                                 ]
    381                                                         },
    382                                                         {
    383                                                                 type :'hbox',
    384                                                                 children :
    385                                                                 [
    386                                                                                 {
    387                                                                                         type :'text',
    388                                                                                         id :'style',
    389                                                                                         style :'width: 100%;',
    390                                                                                         label :editor.lang.common.cssStyle,
    391                                                                                         'default' : '',
    392                                                                                         commit : function( element )
    393                                                                                         {
    394                                                                                                 // Merge with 'elementStyle', which is of higher priority.
    395                                                                                                 var merged = this.getValue() + ( element.getCustomData( 'elementStyle' ) || '' );
    396                                                                                                 element.setAttribute( 'style', merged );
    397                                                                                         }
    398                                                                                 }
    399                                                                 ]
    400                                                         },
    401                                                         {
    402                                                                 type :'hbox',
    403                                                                 children :
    404                                                                 [
    405                                                                                 {
    406                                                                                         type :'text',
    407                                                                                         id :'title',
    408                                                                                         style :'width: 100%;',
    409                                                                                         label :editor.lang.common.advisoryTitle,
    410                                                                                         'default' : ''
    411                                                                                 }
    412                                                                 ]
    413                                                         },
    414                                                         {
    415                                                                 type :'select',
    416                                                                 id :'dir',
    417                                                                 style :'width: 100%;',
    418                                                                 label :editor.lang.common.langDir,
    419                                                                 'default' : '',
    420                                                                 items :
    421                                                                 [
    422                                                                         [ editor.lang.common.notSet , '' ],
    423                                                                         [
    424                                                                                 editor.lang.common.langDirLtr,
    425                                                                                 'ltr'
    426                                                                         ],
    427                                                                         [
    428                                                                                 editor.lang.common.langDirRtl,
    429                                                                                 'rtl'
    430                                                                         ]
    431                                                                 ]
    432                                                         }
    433                                                 ]
    434                                         }
    435                                         ]
    436                                 }
    437                         ],
     353                        dialogadvtab && dialogadvtab.createAdvancedTab( editor, { id:1, dir:1, classes:1, styles:1, title:1, lang:1 } )
     354                        ],
    438355                        onLoad : function()
    439356                        {
    440357                                setupFields.call( this );
  • _source/plugins/dialogadvtab/plugin.js

© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy