Ticket #5587: 5587_4.patch

File 5587_4.patch, 6.5 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/dialog/plugin.js

     
    903903                                                        children : contents.elements,
    904904                                                        expand : !!contents.expand,
    905905                                                        padding : contents.padding,
    906                                                         style : contents.style || 'width: 100%; height: 100%;'
     906                                                        style : contents.style || 'width: 100%;'
    907907                                                }, pageHtml );
    908908
    909909                        // Create the HTML for the tab and the content block.
  • _source/plugins/tabletools/dialogs/tableCell.js

     
    88                var langTable = editor.lang.table,
    99                        langCell = langTable.cell,
    1010                        langCommon = editor.lang.common,
     11                        rtlUI = editor.lang.dir == 'rtl',
    1112                        validate = CKEDITOR.dialog.validate,
    1213                        widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/,
    1314                        heightPattern = /^(\d+(?:\.\d+)?)px$/,
    1415                        bind = CKEDITOR.tools.bind,
    15                         spacer = { type : 'html', html : ' ' };
     16                        spacer = { type : 'html', html : ' ' },
     17                        chooseBtnStyle = 'display:block;margin-top:6px;' + ( rtlUI ? 'margin-right:10px' : 'margin-left: 10px' );
    1618
    1719                /**
    1820                 *
     
    7173
    7274                return {
    7375                        title : langCell.title,
    74                         minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 550 : 480,
    75                         minHeight : CKEDITOR.env.ie ? ( CKEDITOR.env.quirks ? 180 : 150 ) : 140,
     76                        minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks? 450 : 400,
     77                        minHeight : CKEDITOR.env.ie && CKEDITOR.env.quirks?  220 : 200,
    7678                        contents : [
    7779                                {
    7880                                        id : 'info',
     
    99101                                                                                                        type : 'text',
    100102                                                                                                        id : 'width',
    101103                                                                                                        label : langTable.width,
    102                                                                                                         widths : [ '71%', '29%' ],
    103                                                                                                         labelLayout : 'horizontal',
    104104                                                                                                        validate : validate[ 'number' ]( langCell.invalidWidth ),
    105105
    106106                                                                                                        // Extra labelling of width unit type.
     
    139139                                                                                                {
    140140                                                                                                        type : 'select',
    141141                                                                                                        id : 'widthType',
    142                                                                                                         labelLayout : 'horizontal',
    143                                                                                                         widths : [ '0%', '100%' ],
    144142                                                                                                        label : editor.lang.table.widthUnit,
    145                                                                                                         labelStyle: 'display:none',
     143                                                                                                        labelStyle: 'visibility:hidden',
    146144                                                                                                        'default' : 'px',
    147145                                                                                                        items :
    148146                                                                                                        [
     
    168166                                                                                                        id : 'height',
    169167                                                                                                        label : langTable.height,
    170168                                                                                                        'default' : '',
    171                                                                                                         widths : [ '71%', '29%' ],
    172                                                                                                         labelLayout : 'horizontal',
    173169                                                                                                        validate : validate[ 'number' ]( langCell.invalidHeight ),
    174170
    175171                                                                                                        // Extra labelling of height unit type.
     
    206202                                                                                                {
    207203                                                                                                        id : 'htmlHeightType',
    208204                                                                                                        type : 'html',
    209                                                                                                         html : langTable.widthPx
     205                                                                                                        html : '<br />'+ langTable.widthPx
    210206                                                                                                }
    211207                                                                                        ]
    212208                                                                                },
     
    214210                                                                                {
    215211                                                                                        type : 'select',
    216212                                                                                        id : 'wordWrap',
    217                                                                                         labelLayout : 'horizontal',
    218213                                                                                        label : langCell.wordWrap,
    219                                                                                         widths : [ '50%', '50%' ],
    220214                                                                                        'default' : 'yes',
    221215                                                                                        items :
    222216                                                                                        [
     
    245239                                                                                {
    246240                                                                                        type : 'select',
    247241                                                                                        id : 'hAlign',
    248                                                                                         labelLayout : 'horizontal',
     242                                                                                       
    249243                                                                                        label : langCell.hAlign,
    250                                                                                         widths : [ '50%', '50%' ],
    251244                                                                                        'default' : '',
    252245                                                                                        items :
    253246                                                                                        [
     
    278271                                                                                {
    279272                                                                                        type : 'select',
    280273                                                                                        id : 'vAlign',
    281                                                                                         labelLayout : 'horizontal',
     274                                                                                       
    282275                                                                                        label : langCell.vAlign,
    283                                                                                         widths : [ '50%', '50%' ],
    284276                                                                                        'default' : '',
    285277                                                                                        items :
    286278                                                                                        [
     
    333325                                                                                        type : 'select',
    334326                                                                                        id : 'cellType',
    335327                                                                                        label : langCell.cellType,
    336                                                                                         labelLayout : 'horizontal',
    337                                                                                         widths : [ '50%', '50%' ],
     328                                                                                       
    338329                                                                                        'default' : 'td',
    339330                                                                                        items :
    340331                                                                                        [
     
    355346                                                                                        type : 'text',
    356347                                                                                        id : 'rowSpan',
    357348                                                                                        label : langCell.rowSpan,
    358                                                                                         labelLayout : 'horizontal',
    359                                                                                         widths : [ '50%', '50%' ],
     349                                                                                       
    360350                                                                                        'default' : '',
    361351                                                                                        validate : validate.integer( langCell.invalidRowSpan ),
    362352                                                                                        setup : function( selectedCell )
     
    378368                                                                                        type : 'text',
    379369                                                                                        id : 'colSpan',
    380370                                                                                        label : langCell.colSpan,
    381                                                                                         labelLayout : 'horizontal',
    382                                                                                         widths : [ '50%', '50%' ],
     371                                                                                       
    383372                                                                                        'default' : '',
    384373                                                                                        validate : validate.integer( langCell.invalidColSpan ),
    385374                                                                                        setup : function( element )
     
    401390                                                                                {
    402391                                                                                        type : 'hbox',
    403392                                                                                        padding : 0,
    404                                                                                         widths : [ '80%', '20%' ],
     393                                                                                        widths : [ '60%', '40%' ],
    405394                                                                                        children :
    406395                                                                                        [
    407396                                                                                                {
    408397                                                                                                        type : 'text',
    409398                                                                                                        id : 'bgColor',
    410399                                                                                                        label : langCell.bgColor,
    411                                                                                                         labelLayout : 'horizontal',
    412                                                                                                         widths : [ '70%', '30%' ],
    413400                                                                                                        'default' : '',
    414401                                                                                                        setup : function( element )
    415402                                                                                                        {
     
    434421                                                                                                        type : 'button',
    435422                                                                                                        id : 'bgColorChoose',
    436423                                                                                                        label : langCell.chooseColor,
    437                                                                                                         style : 'margin-left: 10px',
     424                                                                                                        style : chooseBtnStyle,
    438425                                                                                                        onClick : function()
    439426                                                                                                        {
    440427                                                                                                                var self = this;
     
    448435                                                                                                }
    449436                                                                                        ]
    450437                                                                                },
    451                                                                                 spacer,
    452438                                                                                {
    453439                                                                                        type : 'hbox',
    454440                                                                                        padding : 0,
    455                                                                                         widths : [ '80%', '20%' ],
     441                                                                                        widths : [ '60%', '40%' ],
    456442                                                                                        children :
    457443                                                                                        [
    458444                                                                                                {
    459445                                                                                                        type : 'text',
    460446                                                                                                        id : 'borderColor',
    461447                                                                                                        label : langCell.borderColor,
    462                                                                                                         labelLayout : 'horizontal',
    463                                                                                                         widths : [ '70%', '30%' ],
    464448                                                                                                        'default' : '',
    465449                                                                                                        setup : function( element )
    466450                                                                                                        {
     
    484468                                                                                                        type : 'button',
    485469                                                                                                        id : 'borderColorChoose',
    486470                                                                                                        label : langCell.chooseColor,
    487                                                                                                         style : 'margin-left: 10px',
     471                                                                                                        style : chooseBtnStyle,
    488472                                                                                                        onClick : function()
    489473                                                                                                        {
    490474                                                                                                                var self = this;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy