Ticket #5587: 5587_7.patch

File 5587_7.patch, 11.9 KB (added by Garry Yao, 15 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/skins/office2003/dialog.css

     
    637637{
    638638        border : 2px ridge black;
    639639        overflow : scroll;
    640         height : 160px;
     640        height : 210px;
    641641        width : 230px;
    642642        padding : 2px;
    643643        background-color : white;
     
    783783{
    784784        float: right;
    785785}
     786
     787/**
     788 * Styles specific to "cellProperties" dialog.
     789 */
     790
     791.cke_skin_office2003 .cke_dialog_contents a.colorChooser
     792{
     793        display:block;
     794        margin-top:12px;
     795        margin-left: 10px;
     796        width: 40px;
     797}
     798
     799.cke_skin_office2003 .cke_dialog_contents a.colorChooser .cke_dialog_ui_button
     800{
     801        width:100%;
     802}
     803
     804.cke_skin_office2003 .cke_rtl .cke_dialog_contents a.colorChooser
     805{
     806        margin-right: 10px;
     807}
  • _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/dialog.css

     
    639639{
    640640        border : 2px ridge black;
    641641        overflow : scroll;
    642         height : 160px;
     642        height : 210px;
    643643        width : 230px;
    644644        padding : 2px;
    645645        background-color : white;
     
    798798{
    799799        border-color: #C7C78F;
    800800}
     801
     802
     803/**
     804 * Styles specific to "cellProperties" dialog.
     805 */
     806
     807.cke_skin_v2 .cke_dialog_contents a.colorChooser
     808{
     809        display:block;
     810        margin-top:12px;
     811        margin-left: 10px;
     812        width: 40px;
     813}
     814
     815.cke_skin_v2 .cke_dialog_contents a.colorChooser .cke_dialog_ui_button
     816{
     817        width:100%;
     818}
     819
     820.cke_skin_v2 .cke_rtl .cke_dialog_contents a.colorChooser
     821{
     822        margin-right: 10px;
     823}
  • _source/plugins/image/dialogs/image.js

     
    264264                return {
    265265                        title : ( dialogType == 'image' ) ? editor.lang.image.title : editor.lang.image.titleButton,
    266266                        minWidth : 420,
    267                         minHeight : 310,
     267                        minHeight : CKEDITOR.env.ie && CKEDITOR.env.quirks?  360: 310,
    268268                        onShow : function()
    269269                        {
    270270                                this.imageElement = false;
     
    607607                                                },
    608608                                                {
    609609                                                        type : 'hbox',
    610                                                         widths : [ '140px', '240px' ],
    611610                                                        children :
    612611                                                        [
    613612                                                                {
    614613                                                                        type : 'vbox',
    615                                                                         padding : 10,
    616614                                                                        children :
    617615                                                                        [
    618616                                                                                {
    619617                                                                                        type : 'hbox',
    620                                                                                         widths : [ '70%', '30%' ],
     618                                                                                        widths : [ '50%', '50%' ],
    621619                                                                                        children :
    622620                                                                                        [
    623621                                                                                                {
     
    629627                                                                                                                        type : 'text',
    630628                                                                                                                        width: '40px',
    631629                                                                                                                        id : 'txtWidth',
    632                                                                                                                         labelLayout : 'horizontal',
    633630                                                                                                                        label : editor.lang.image.width,
    634631                                                                                                                        onKeyUp : onSizeChange,
    635632                                                                                                                        onChange : function()
     
    679676                                                                                                                        type : 'text',
    680677                                                                                                                        id : 'txtHeight',
    681678                                                                                                                        width: '40px',
    682                                                                                                                         labelLayout : 'horizontal',
    683679                                                                                                                        label : editor.lang.image.height,
    684680                                                                                                                        onKeyUp : onSizeChange,
    685681                                                                                                                        onChange : function()
     
    730726                                                                                                },
    731727                                                                                                {
    732728                                                                                                        type : 'html',
    733                                                                                                         style : 'margin-top:10px;width:40px;height:40px;',
     729                                                                                                        style : 'margin-top:30px;width:40px;height:40px;',
    734730                                                                                                        onLoad : function()
    735731                                                                                                        {
    736732                                                                                                                // Activate Reset button
     
    800796                                                                                                        type : 'text',
    801797                                                                                                        id : 'txtBorder',
    802798                                                                                                        width: '60px',
    803                                                                                                         labelLayout : 'horizontal',
    804799                                                                                                        label : editor.lang.image.border,
    805800                                                                                                        'default' : '',
    806801                                                                                                        onKeyUp : function()
     
    857852                                                                                                        type : 'text',
    858853                                                                                                        id : 'txtHSpace',
    859854                                                                                                        width: '60px',
    860                                                                                                         labelLayout : 'horizontal',
    861855                                                                                                        label : editor.lang.image.hSpace,
    862856                                                                                                        'default' : '',
    863857                                                                                                        onKeyUp : function()
     
    921915                                                                                                        type : 'text',
    922916                                                                                                        id : 'txtVSpace',
    923917                                                                                                        width : '60px',
    924                                                                                                         labelLayout : 'horizontal',
    925918                                                                                                        label : editor.lang.image.vSpace,
    926919                                                                                                        'default' : '',
    927920                                                                                                        onKeyUp : function()
     
    983976                                                                                                {
    984977                                                                                                        id : 'cmbAlign',
    985978                                                                                                        type : 'select',
    986                                                                                                         labelLayout : 'horizontal',
    987979                                                                                                        widths : [ '35%','65%' ],
    988980                                                                                                        style : 'width:90px',
    989981                                                                                                        label : editor.lang.image.align,
  • _source/skins/kama/dialog.css

     
    712712{
    713713        border : 2px ridge black;
    714714        overflow : scroll;
    715         height : 160px;
    716         width : 230px;
     715        height : 200px;
     716        width : 300px;
    717717        padding : 2px;
    718718        background-color : white;
    719719}
     
    880880        filter: alpha(opacity=100);
    881881        border: 1px solid white;
    882882}
     883
     884/**
     885 * Styles specific to "cellProperties" dialog.
     886 */
     887
     888.cke_skin_kama .cke_dialog_contents a.colorChooser
     889{
     890        display:block;
     891        margin-top:6px;
     892        margin-left: 10px;
     893        width: 80px;
     894}
     895
     896.cke_skin_kama .cke_rtl .cke_dialog_contents a.colorChooser
     897{
     898        margin-right: 10px;
     899}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy