Ticket #5587: 5587_5.patch

File 5587_5.patch, 9.9 KB (added by Garry Yao, 13 years ago)
  • _source/skins/kama/skin.js

     
    2020                editor          : { css : [ 'editor.css' ] },
    2121                dialog          : { css : [ 'dialog.css' ] },
    2222                templates       : { css : [ 'templates.css' ] },
     23                cellProperties  : { css : [ 'cellProperties.css' ] },
    2324                margins         : [ 0, 0, 0, 0 ],
    2425                init : function( editor )
    2526                {
  • _source/skins/kama/cellProperties.css

     
     1/*
     2Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
     3For licensing, see LICENSE.html or http://ckeditor.com/license
     4*/
     5
     6/**
     7 * Styles for the "cellProperties" plugin.
     8 */
     9
     10.cke_skin_kama .cke_dialog_contents a.colorChooser
     11{
     12        display:block;
     13        margin-top:6px;
     14        margin-left: 10px
     15}
     16
     17.cke_skin_kama .cke_rtl .cke_dialog_contents a.colorChooser
     18{
     19        margin-right: 10px;
     20}
  • _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,
    1516                        spacer = { type : 'html', html : ' ' };
    1617
     18                // Load skin at first.
     19                CKEDITOR.skins.load( editor, 'cellProperties' );
     20
    1721                /**
    1822                 *
    1923                 * @param dialogName
     
    7175
    7276                return {
    7377                        title : langCell.title,
    74                         minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 550 : 480,
    75                         minHeight : CKEDITOR.env.ie ? ( CKEDITOR.env.quirks ? 180 : 150 ) : 140,
     78                        minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks? 450 : 400,
     79                        minHeight : CKEDITOR.env.ie && CKEDITOR.env.quirks?  220 : 200,
    7680                        contents : [
    7781                                {
    7882                                        id : 'info',
     
    98102                                                                                                {
    99103                                                                                                        type : 'text',
    100104                                                                                                        id : 'width',
     105                                                                                                        width: '100px',
    101106                                                                                                        label : langTable.width,
    102                                                                                                         widths : [ '71%', '29%' ],
    103                                                                                                         labelLayout : 'horizontal',
    104107                                                                                                        validate : validate[ 'number' ]( langCell.invalidWidth ),
    105108
    106109                                                                                                        // Extra labelling of width unit type.
     
    139142                                                                                                {
    140143                                                                                                        type : 'select',
    141144                                                                                                        id : 'widthType',
    142                                                                                                         labelLayout : 'horizontal',
    143                                                                                                         widths : [ '0%', '100%' ],
    144145                                                                                                        label : editor.lang.table.widthUnit,
    145                                                                                                         labelStyle: 'display:none',
     146                                                                                                        labelStyle: 'visibility:hidden',
    146147                                                                                                        'default' : 'px',
    147148                                                                                                        items :
    148149                                                                                                        [
     
    166167                                                                                                {
    167168                                                                                                        type : 'text',
    168169                                                                                                        id : 'height',
     170                                                                                                        width: '100px',
    169171                                                                                                        label : langTable.height,
    170172                                                                                                        'default' : '',
    171                                                                                                         widths : [ '71%', '29%' ],
    172                                                                                                         labelLayout : 'horizontal',
    173173                                                                                                        validate : validate[ 'number' ]( langCell.invalidHeight ),
    174174
    175175                                                                                                        // Extra labelling of height unit type.
     
    206206                                                                                                {
    207207                                                                                                        id : 'htmlHeightType',
    208208                                                                                                        type : 'html',
    209                                                                                                         html : langTable.widthPx
     209                                                                                                        html : '<br />'+ langTable.widthPx
    210210                                                                                                }
    211211                                                                                        ]
    212212                                                                                },
     
    214214                                                                                {
    215215                                                                                        type : 'select',
    216216                                                                                        id : 'wordWrap',
    217                                                                                         labelLayout : 'horizontal',
    218217                                                                                        label : langCell.wordWrap,
    219                                                                                         widths : [ '50%', '50%' ],
    220218                                                                                        'default' : 'yes',
    221219                                                                                        items :
    222220                                                                                        [
     
    245243                                                                                {
    246244                                                                                        type : 'select',
    247245                                                                                        id : 'hAlign',
    248                                                                                         labelLayout : 'horizontal',
     246                                                                                       
    249247                                                                                        label : langCell.hAlign,
    250                                                                                         widths : [ '50%', '50%' ],
    251248                                                                                        'default' : '',
    252249                                                                                        items :
    253250                                                                                        [
     
    278275                                                                                {
    279276                                                                                        type : 'select',
    280277                                                                                        id : 'vAlign',
    281                                                                                         labelLayout : 'horizontal',
     278                                                                                       
    282279                                                                                        label : langCell.vAlign,
    283                                                                                         widths : [ '50%', '50%' ],
    284280                                                                                        'default' : '',
    285281                                                                                        items :
    286282                                                                                        [
     
    333329                                                                                        type : 'select',
    334330                                                                                        id : 'cellType',
    335331                                                                                        label : langCell.cellType,
    336                                                                                         labelLayout : 'horizontal',
    337                                                                                         widths : [ '50%', '50%' ],
     332                                                                                       
    338333                                                                                        'default' : 'td',
    339334                                                                                        items :
    340335                                                                                        [
     
    355350                                                                                        type : 'text',
    356351                                                                                        id : 'rowSpan',
    357352                                                                                        label : langCell.rowSpan,
    358                                                                                         labelLayout : 'horizontal',
    359                                                                                         widths : [ '50%', '50%' ],
     353                                                                                       
    360354                                                                                        'default' : '',
    361355                                                                                        validate : validate.integer( langCell.invalidRowSpan ),
    362356                                                                                        setup : function( selectedCell )
     
    378372                                                                                        type : 'text',
    379373                                                                                        id : 'colSpan',
    380374                                                                                        label : langCell.colSpan,
    381                                                                                         labelLayout : 'horizontal',
    382                                                                                         widths : [ '50%', '50%' ],
     375                                                                                       
    383376                                                                                        'default' : '',
    384377                                                                                        validate : validate.integer( langCell.invalidColSpan ),
    385378                                                                                        setup : function( element )
     
    401394                                                                                {
    402395                                                                                        type : 'hbox',
    403396                                                                                        padding : 0,
    404                                                                                         widths : [ '80%', '20%' ],
     397                                                                                        widths : [ '60%', '40%' ],
    405398                                                                                        children :
    406399                                                                                        [
    407400                                                                                                {
    408401                                                                                                        type : 'text',
    409402                                                                                                        id : 'bgColor',
    410403                                                                                                        label : langCell.bgColor,
    411                                                                                                         labelLayout : 'horizontal',
    412                                                                                                         widths : [ '70%', '30%' ],
    413404                                                                                                        'default' : '',
    414405                                                                                                        setup : function( element )
    415406                                                                                                        {
     
    433424                                                                                                {
    434425                                                                                                        type : 'button',
    435426                                                                                                        id : 'bgColorChoose',
     427                                                                                                        "class" : 'colorChooser',
    436428                                                                                                        label : langCell.chooseColor,
    437                                                                                                         style : 'margin-left: 10px',
    438429                                                                                                        onClick : function()
    439430                                                                                                        {
    440431                                                                                                                var self = this;
     
    448439                                                                                                }
    449440                                                                                        ]
    450441                                                                                },
    451                                                                                 spacer,
    452442                                                                                {
    453443                                                                                        type : 'hbox',
    454444                                                                                        padding : 0,
    455                                                                                         widths : [ '80%', '20%' ],
     445                                                                                        widths : [ '60%', '40%' ],
    456446                                                                                        children :
    457447                                                                                        [
    458448                                                                                                {
    459449                                                                                                        type : 'text',
    460450                                                                                                        id : 'borderColor',
    461451                                                                                                        label : langCell.borderColor,
    462                                                                                                         labelLayout : 'horizontal',
    463                                                                                                         widths : [ '70%', '30%' ],
    464452                                                                                                        'default' : '',
    465453                                                                                                        setup : function( element )
    466454                                                                                                        {
     
    483471                                                                                                {
    484472                                                                                                        type : 'button',
    485473                                                                                                        id : 'borderColorChoose',
     474                                                                                                        "class" : 'colorChooser',
    486475                                                                                                        label : langCell.chooseColor,
    487                                                                                                         style : 'margin-left: 10px',
    488476                                                                                                        onClick : function()
    489477                                                                                                        {
    490478                                                                                                                var self = this;
  • _source/skins/v2/skin.js

     
    1919                editor          : { css : [ 'editor.css' ] },
    2020                dialog          : { css : [ 'dialog.css' ] },
    2121                templates       : { css : [ 'templates.css' ] },
     22                cellProperties  : { css : [ 'cellProperties.css' ] },
    2223                margins         : [ 0, 14, 18, 14 ]
    2324        };
    2425})() );
  • _source/skins/v2/cellProperties.css

     
     1/*
     2Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
     3For licensing, see LICENSE.html or http://ckeditor.com/license
     4*/
     5
     6/**
     7 * Styles for the "cellProperties" plugin.
     8 */
     9
     10.cke_skin_v2 .cke_dialog_contents a.colorChooser
     11{
     12        display:block;
     13        margin-top:12px;
     14        margin-left: 10px
     15}
     16
     17.cke_skin_v2 .cke_rtl .cke_dialog_contents a.colorChooser
     18{
     19        margin-right: 10px;
     20}
  • _source/skins/office2003/skin.js

     
    1919                editor          : { css : [ 'editor.css' ] },
    2020                dialog          : { css : [ 'dialog.css' ] },
    2121                templates       : { css : [ 'templates.css' ] },
     22                cellProperties  : { css : [ 'cellProperties.css' ] },
    2223                margins         : [ 0, 14, 18, 14 ]
    2324        };
    2425})() );
  • _source/skins/office2003/cellProperties.css

     
     1/*
     2Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
     3For licensing, see LICENSE.html or http://ckeditor.com/license
     4*/
     5
     6/**
     7 * Styles for the "cellProperties" plugin.
     8 */
     9
     10.cke_skin_office2003 .cke_dialog_contents a.colorChooser
     11{
     12        display:block;
     13        margin-top:12px;
     14        margin-left: 10px
     15}
     16
     17.cke_skin_office2003 .cke_rtl .cke_dialog_contents a.colorChooser
     18{
     19        margin-right: 10px;
     20}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy