Ticket #7991: 7991_2.patch

File 7991_2.patch, 5.1 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/dialogui/plugin.js

     
    158158                                                html.push( '<label class="cke_dialog_ui_labeled_label' + requiredClass + '" ',
    159159                                                                ' id="'+  _.labelId + '"',
    160160                                                                ' for="' + _.inputId + '"',
    161                                                                 ' style="' + elementDefinition.labelStyle + '">',
     161                                                                ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) +'>',
    162162                                                                elementDefinition.label,
    163163                                                                '</label>',
    164                                                                 '<div class="cke_dialog_ui_labeled_content" role="presentation">',
     164                                                                '<div class="cke_dialog_ui_labeled_content"' + ( elementDefinition.inputStyle ? ' style="' + elementDefinition.inputStyle + '"' : '' ) + ' role="presentation">',
    165165                                                                contentHtml.call( this, dialog, elementDefinition ),
    166166                                                                '</div>' );
    167167                                        else
     
    177177                                                                        html : '<label class="cke_dialog_ui_labeled_label' + requiredClass + '"' +
    178178                                                                                ' id="' + _.labelId + '"' +
    179179                                                                                ' for="' + _.inputId + '"' +
    180                                                                                 ' style="' + elementDefinition.labelStyle + '">' +
     180                                                                                ( elementDefinition.labelStyle ? ' style="' + elementDefinition.labelStyle + '"' : '' ) +'>' +
    181181                                                                                   CKEDITOR.tools.htmlEncode( elementDefinition.label ) +
    182182                                                                                '</span>'
    183183                                                                },
    184184                                                                {
    185185                                                                        type : 'html',
    186                                                                         html : '<span class="cke_dialog_ui_labeled_content">' +
     186                                                                        html : '<span class="cke_dialog_ui_labeled_content"' + ( elementDefinition.inputStyle ? ' style="' + elementDefinition.inputStyle + '"' : '' ) + '>' +
    187187                                                                                contentHtml.call( this, dialog, elementDefinition ) +
    188188                                                                                '</span>'
    189189                                                                }
  • _source/plugins/dialog/dialogDefinition.js

     
    500500 * @example
    501501 */
    502502
     503// ----- labeled element ------
     504
     505/**
     506 *  Specify the inline style of the uiElement label.
     507 * @name CKEDITOR.dialog.definition.labeledElement.prototype.labelStyle
     508 * @type String
     509 * @field
     510 * @example
     511 * {
     512 *              type : 'text',
     513 *              label : 'My Label ',
     514 *      <strong>        labelStyle : 'color: red',</strong>
     515 * }
     516 */
     517
     518/**
     519 *  Specify the inline style of the input element.
     520 * @name CKEDITOR.dialog.definition.labeledElement.prototype.inputStyle
     521 * @type String
     522 * @field
     523 * @example
     524 * {
     525 *              type : 'text',
     526 *              label : 'My Label ',
     527 *      <strong>        inputStyle : 'width:3em',</strong>
     528 * }
     529 */
     530
     531
    503532// ----- button ------
    504533
    505534/**
  • _source/plugins/table/dialogs/table.js

     
    262262                                                                                        'default' : 3,
    263263                                                                                        label : editor.lang.table.rows,
    264264                                                                                        required : true,
    265                                                                                         style : 'width:5em',
     265                                                                                        inputStyle : 'width:5em',
    266266                                                                                        validate : function()
    267267                                                                                        {
    268268                                                                                                var pass = true,
     
    288288                                                                                        'default' : 2,
    289289                                                                                        label : editor.lang.table.columns,
    290290                                                                                        required : true,
    291                                                                                         style : 'width:5em',
     291                                                                                        inputStyle : 'width:5em',
    292292                                                                                        validate : function()
    293293                                                                                        {
    294294                                                                                                var pass = true,
     
    354354                                                                                        id : 'txtBorder',
    355355                                                                                        'default' : 1,
    356356                                                                                        label : editor.lang.table.border,
    357                                                                                         style : 'width:3em',
     357                                                                                        inputStyle : 'width:3em',
    358358                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidBorder ),
    359359                                                                                        setup : function( selectedTable )
    360360                                                                                        {
     
    407407                                                                                                {
    408408                                                                                                        type : 'text',
    409409                                                                                                        id : 'txtWidth',
    410                                                                                                         style : 'width:5em',
     410                                                                                                        inputStyle : 'width:5em',
    411411                                                                                                        label : editor.lang.common.width,
    412412                                                                                                        'default' : 500,
    413413                                                                                                        getValue : defaultToPixel,
     
    434434                                                                                                {
    435435                                                                                                        type : 'text',
    436436                                                                                                        id : 'txtHeight',
    437                                                                                                         style : 'width:5em',
     437                                                                                                        inputStyle : 'width:5em',
    438438                                                                                                        label : editor.lang.common.height,
    439439                                                                                                        'default' : '',
    440440                                                                                                        getValue : defaultToPixel,
     
    461461                                                                                {
    462462                                                                                        type : 'text',
    463463                                                                                        id : 'txtCellSpace',
    464                                                                                         style : 'width:3em',
     464                                                                                        inputStyle : 'width:3em',
    465465                                                                                        label : editor.lang.table.cellSpace,
    466466                                                                                        'default' : 1,
    467467                                                                                        validate : CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellSpacing ),
     
    480480                                                                                {
    481481                                                                                        type : 'text',
    482482                                                                                        id : 'txtCellPad',
    483                                                                                         style : 'width:3em',
     483                                                                                        inputStyle : 'width:3em',
    484484                                                                                        label : editor.lang.table.cellPad,
    485485                                                                                        'default' : 1,
    486486                                                                                        validate : CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellPadding ),
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy