Ticket #5886: 5886.patch

File 5886.patch, 2.8 KB (added by Alfonso Martínez de Lizarrondo, 13 years ago)

Proposed patch

  • _source/plugins/tabletools/dialogs/tableCell.js

     
    55
    66CKEDITOR.dialog.add( 'cellProperties', function( editor )
    77        {
    8                 var langTable = editor.lang.table;
    9                 var langCell = langTable.cell;
    10                 var langCommon = editor.lang.common;
    11                 var validate = CKEDITOR.dialog.validate;
    12                 var widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/,
    13                         heightPattern = /^(\d+(?:\.\d+)?)px$/;
    14                 var bind = CKEDITOR.tools.bind;
     8                var langTable = editor.lang.table,
     9                        langCell = langTable.cell,
     10                        langCommon = editor.lang.common,
     11                        validate = CKEDITOR.dialog.validate,
     12                        widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/,
     13                        heightPattern = /^(\d+(?:\.\d+)?)px$/,
     14                        bind = CKEDITOR.tools.bind,
     15                        spacer = { type : 'html', html : ' ' };
    1516
    16                 function spacer()
    17                 {
    18                         return { type : 'html', html : ' ' };
    19                 }
    20 
    2117                /**
    2218                 *
    2319                 * @param dialogName
     
    3430                        {
    3531                                releaseHandlers( this );
    3632                        };
    37                         var bindToDialog = function( dialog )
    38                         {
    39                                 dialog.on( 'ok', onOk );
    40                                 dialog.on( 'cancel', onCancel );
    41                         };
    4233                        var releaseHandlers = function( dialog )
    4334                        {
    4435                                dialog.removeListener( 'ok', onOk );
    4536                                dialog.removeListener( 'cancel', onCancel );
    4637                        };
     38                        var bindToDialog = function( dialog )
     39                        {
     40                                dialog.on( 'ok', onOk );
     41                                dialog.on( 'cancel', onCancel );
     42                        };
    4743                        editor.execCommand( dialogName );
    4844                        if ( editor._.storedDialogs.colordialog )
    4945                                bindToDialog( editor._.storedDialogs.colordialog );
     
    212208                                                                                                }
    213209                                                                                        ]
    214210                                                                                },
    215                                                                                 spacer(),
     211                                                                                spacer,
    216212                                                                                {
    217213                                                                                        type : 'select',
    218214                                                                                        id : 'wordWrap',
     
    243239                                                                                                element.removeAttribute( 'noWrap' );
    244240                                                                                        }
    245241                                                                                },
    246                                                                                 spacer(),
     242                                                                                spacer,
    247243                                                                                {
    248244                                                                                        type : 'select',
    249245                                                                                        id : 'hAlign',
     
    325321                                                                                }
    326322                                                                        ]
    327323                                                                },
    328                                                                 spacer(),
     324                                                                spacer,
    329325                                                                {
    330326                                                                        type : 'vbox',
    331327                                                                        padding : 0,
     
    352348                                                                                                selectedCell.renameNode( this.getValue() );
    353349                                                                                        }
    354350                                                                                },
    355                                                                                 spacer(),
     351                                                                                spacer,
    356352                                                                                {
    357353                                                                                        type : 'text',
    358354                                                                                        id : 'rowSpan',
     
    399395                                                                                                        selectedCell.removeAttribute( 'colSpan' );
    400396                                                                                        }
    401397                                                                                },
    402                                                                                 spacer(),
     398                                                                                spacer,
    403399                                                                                {
    404400                                                                                        type : 'hbox',
    405401                                                                                        padding : 0,
     
    450446                                                                                                }
    451447                                                                                        ]
    452448                                                                                },
    453                                                                                 spacer(),
     449                                                                                spacer,
    454450                                                                                {
    455451                                                                                        type : 'hbox',
    456452                                                                                        padding : 0,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy