Ticket #3391: 3391_2.patch

File 3391_2.patch, 9.0 KB (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    727727                                                        children : contents.elements,
    728728                                                        expand : !!contents.expand,
    729729                                                        padding : contents.padding,
    730                                                         style : 'width: 100%; height: 100%;'
     730                                                        style : contents.style || 'width: 100%; height: 100%;'
    731731                                                }, pageHtml );
    732732
    733733                        // Create the HTML for the tab and the content block.
  • _source/plugins/dialogui/plugin.js

     
    132132                                                html.push( '<div class="cke_dialog_ui_labeled_label" id="',
    133133                                                                _.labelId,
    134134                                                                '" >',
    135                                                                 CKEDITOR.tools.htmlEncode( elementDefinition.label ),
     135                                                                elementDefinition.label,
    136136                                                                '</div>',
    137137                                                                '<div class="cke_dialog_ui_labeled_content">',
    138138                                                                contentHtml( dialog, elementDefinition ),
  • _source/plugins/table/dialogs/table.js

     
    2222
    2323                return {
    2424                        title : editor.lang.table.title,
    25                         minWidth : 430,
    26                         minHeight : 180,
     25                        minWidth : 250,
     26                        minHeight : CKEDITOR.env.ie ? 280 : 265,
    2727                        onShow : function()
    2828                        {
    2929                                // Detect if there's a selected table.
     
    198198                                {
    199199                                        id : 'info',
    200200                                        label : editor.lang.table.title,
    201                                         accessKey : 'I',
    202201                                        elements :
    203202                                        [
    204203                                                {
    205204                                                        type : 'hbox',
    206                                                         widths : [ '40%', '10%', '60%' ],
     205                                                        widths : [ null, '1%' ],
     206                                                        styles : [ 'vertical-align:top' ],
    207207                                                        children :
    208208                                                        [
    209209                                                                {
     
    213213                                                                        [
    214214                                                                                {
    215215                                                                                        type : 'text',
    216                                                                                         id : 'txtRows',
    217                                                                                         labelLayout : 'horizontal',
    218                                                                                         widths : [ '60%','40%' ],
    219                                                                                         style : 'width:105px',
     216                                                                                        id : 'txtRows',                                                                                 
    220217                                                                                        'default' : 3,
    221218                                                                                        label : editor.lang.table.rows,
     219                                                                                        style : 'width:5em',
    222220                                                                                        validate : function()
    223221                                                                                        {
    224222                                                                                                var pass = true,
     
    241239                                                                                {
    242240                                                                                        type : 'text',
    243241                                                                                        id : 'txtCols',
    244                                                                                         labelLayout : 'horizontal',
    245                                                                                         widths : [ '60%','40%' ],
    246                                                                                         style : 'width:105px',
    247242                                                                                        'default' : 2,
    248243                                                                                        label : editor.lang.table.columns,
     244                                                                                        style : 'width:5em',
    249245                                                                                        validate : function()
    250246                                                                                        {
    251247                                                                                                var pass = true,
     
    266262                                                                                        commit : commitValue
    267263                                                                                },
    268264                                                                                {
     265                                                                                        type : 'html',
     266                                                                                        html : '&nbsp;'
     267                                                                                },
     268                                                                                {
    269269                                                                                        type : 'select',
    270270                                                                                        id : 'selHeaders',
    271                                                                                         labelLayout : 'horizontal',
    272271                                                                                        'default' : '',
    273                                                                                         widths : [ '40%', '60%' ],
    274272                                                                                        label : editor.lang.table.headers,
    275273                                                                                        items :
    276274                                                                                        [
     
    307305                                                                                {
    308306                                                                                        type : 'text',
    309307                                                                                        id : 'txtBorder',
    310                                                                                         labelLayout : 'horizontal',
    311                                                                                         widths : [ '60%','40%' ],
    312                                                                                         style : 'width:105px',
    313308                                                                                        'default' : 1,
    314309                                                                                        label : editor.lang.table.border,
     310                                                                                        style : 'width:3em',
    315311                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidBorder ),
    316312                                                                                        setup : function( selectedTable )
    317313                                                                                        {
     
    328324                                                                                {
    329325                                                                                        id : 'cmbAlign',
    330326                                                                                        type : 'select',
    331                                                                                         labelLayout : 'horizontal',
    332327                                                                                        'default' : '',
    333                                                                                         widths : [ '40%','60%' ],
    334328                                                                                        label : editor.lang.table.align,
    335329                                                                                        items :
    336330                                                                                        [
     
    354348                                                                        ]
    355349                                                                },
    356350                                                                {
    357                                                                         type : 'html',
    358                                                                         align : 'right',
    359                                                                         html : ''
    360                                                                 },
    361                                                                 {
    362351                                                                        type : 'vbox',
    363                                                                         align : 'right',
    364352                                                                        padding : 0,
    365353                                                                        children :
    366354                                                                        [
    367355                                                                                {
    368356                                                                                        type : 'hbox',
    369                                                                                         align : 'center',
    370                                                                                         widths : [ '70%', '30%' ],
     357                                                                                        widths : [ '5em' ],
    371358                                                                                        children :
    372359                                                                                        [
    373360                                                                                                {
    374361                                                                                                        type : 'text',
    375362                                                                                                        id : 'txtWidth',
    376                                                                                                         labelLayout : 'horizontal',
    377                                                                                                         widths : [ '50%','50%' ],
     363                                                                                                        style : 'width:5em',
    378364                                                                                                        label : editor.lang.table.width,
    379365                                                                                                        'default' : 200,
    380366                                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidWidth ),
     
    389375                                                                                                {
    390376                                                                                                        id : 'cmbWidthType',
    391377                                                                                                        type : 'select',
    392                                                                                                         labelLayout : 'horizontal',
    393                                                                                                         widths : [ '0%','100%' ],
    394                                                                                                         label : '',
     378                                                                                                        label : '&nbsp;',
    395379                                                                                                        'default' : 'pixels',
    396380                                                                                                        items :
    397381                                                                                                        [
     
    410394                                                                                },
    411395                                                                                {
    412396                                                                                        type : 'hbox',
    413                                                                                         widths : [ '70%', '30%' ],
     397                                                                                        widths : [ '5em' ],
    414398                                                                                        children :
    415399                                                                                        [
    416400                                                                                                {
    417401                                                                                                        type : 'text',
    418402                                                                                                        id : 'txtHeight',
    419                                                                                                         labelLayout : 'horizontal',
    420                                                                                                         widths : [ '50%','50%' ],
     403                                                                                                        style : 'width:5em',
    421404                                                                                                        label : editor.lang.table.height,
    422405                                                                                                        'default' : '',
    423406                                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidHeight ),
     
    431414                                                                                                },
    432415                                                                                                {
    433416                                                                                                        type : 'html',
    434                                                                                                         html : editor.lang.table.widthPx
     417                                                                                                        html : '<br />' + editor.lang.table.widthPx
    435418                                                                                                }
    436419                                                                                        ]
    437420                                                                                },
     
    442425                                                                                {
    443426                                                                                        type : 'text',
    444427                                                                                        id : 'txtCellSpace',
    445                                                                                         labelLayout : 'horizontal',
    446                                                                                         widths : [ '50%','50%' ],
    447                                                                                         style : 'width:140px',
     428                                                                                        style : 'width:3em',
    448429                                                                                        label : editor.lang.table.cellSpace,
    449430                                                                                        'default' : 1,
    450431                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellSpacing ),
     
    463444                                                                                {
    464445                                                                                        type : 'text',
    465446                                                                                        id : 'txtCellPad',
    466                                                                                         labelLayout : 'horizontal',
    467                                                                                         widths : [ '50%','50%' ],
    468                                                                                         style : 'width:140px',
     447                                                                                        style : 'width:3em',
    469448                                                                                        label : editor.lang.table.cellPad,
    470449                                                                                        'default' : 1,
    471450                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellPadding ),
     
    496475                                                        children :
    497476                                                        [
    498477                                                                {
    499                                                                         id : 'txtCaption',
    500478                                                                        type : 'text',
    501479                                                                        label : editor.lang.table.caption,
    502                                                                         widths : [ '30%','70%' ],
    503                                                                         labelLayout : 'horizontal',
    504                                                                         'default' : '',
    505                                                                         style : 'width:400px',
    506480                                                                        setup : function( selectedTable )
    507481                                                                        {
    508482                                                                                var nodeList = selectedTable.getElementsByTag( 'caption' );
     
    543517                                                                        }
    544518                                                                },
    545519                                                                {
    546                                                                         id : 'txtSummary',
    547520                                                                        type : 'text',
    548                                                                         labelLayout : 'horizontal',
    549521                                                                        label : editor.lang.table.summary,
    550                                                                         'default' : '',
    551                                                                         widths : [ '30%','70%' ],
    552                                                                         accessKey : 'A',
    553                                                                         style : 'width:400px',
    554522                                                                        setup : function( selectedTable )
    555523                                                                        {
    556524                                                                                this.setValue( selectedTable.getAttribute( 'summary' ) || '' );
  • _source/skins/office2003/dialog.css

     
    308308        width: 100%;
    309309}
    310310
     311.cke_skin_office2003 .cke_dialog_ui_hbox_first,
     312.cke_skin_office2003 .cke_dialog_ui_hbox_child,
     313.cke_skin_office2003 .cke_dialog_ui_hbox_last
     314{
     315        vertical-align: top;
     316}
     317
     318.cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_first,
     319.cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_child
     320{
     321        padding-right: 10px;
     322}
     323
    311324.cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_first,
    312325.cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_child
    313326{
    314327        padding-left: 10px;
    315         vertical-align: top;
    316328}
    317329
    318330/* button */
  • _source/skins/v2/dialog.css

     
    305305        width: 100%;
    306306}
    307307
     308.cke_skin_v2 .cke_dialog_ui_hbox_first,
     309.cke_skin_v2 .cke_dialog_ui_hbox_child,
     310.cke_skin_v2 .cke_dialog_ui_hbox_last
     311{
     312        vertical-align: top;
     313}
     314
     315.cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_first,
     316.cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_child
     317{
     318        padding-right: 10px;
     319}
     320
    308321.cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_first,
    309322.cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_child
    310323{
    311324        padding-left: 10px;
    312         vertical-align: top;
    313325}
    314326
    315327/* button */
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy