Ticket #3878: 3878_2.patch

File 3878_2.patch, 13.4 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/forms/dialogs/select.js

     
    131131
    132132        return {
    133133                title : editor.lang.select.title,
    134                 minWidth : CKEDITOR.env.ie ? 460 : 395,
    135                 minHeight : CKEDITOR.env.ie ? 320 : 300,
     134                minWidth : 395,
     135                minHeight : CKEDITOR.env.ie ? 310 : 310,
    136136                onShow : function()
    137137                {
    138138                        delete this.selectBox;
     
    390390                                                        },
    391391                                                        {
    392392                                                                type : 'vbox',
    393                                                                 padding : 5,
     393                                                                padding : CKEDITOR.env.webkit ? 0 : 4,
    394394                                                                children :
    395395                                                                [
    396396                                                                        {
     
    476476                                        },
    477477                                        {
    478478                                                type : 'hbox',
    479                                                 widths : [ '40%', '20%', '40%' ],
    480479                                                children :
    481480                                                [
    482481                                                        {
     
    511510                                                                        optName.setValue( "" );
    512511                                                                        optValue.setValue( "" );
    513512                                                                }
    514                                                         },
    515                                                         {
    516                                                                 id : 'chkMulti',
    517                                                                 type : 'checkbox',
    518                                                                 label : editor.lang.select.chkMulti,
    519                                                                 'default' : '',
    520                                                                 accessKey : 'M',
    521                                                                 value : "checked",
    522                                                                 setup : function( name, element )
    523                                                                 {
    524                                                                         if ( name == 'select' )
    525                                                                                 this.setValue( element.getAttribute( 'multiple' ) );
    526                                                                 },
    527                                                                 commit : function( element )
    528                                                                 {
    529                                                                         if ( this.getValue() )
    530                                                                                 element.setAttribute( 'multiple', this.getValue() );
    531                                                                         else
    532                                                                                 element.removeAttribute( 'multiple' );
    533                                                                 }
    534513                                                        }
    535514                                                ]
     515                                        },
     516                                        {
     517                                                id : 'chkMulti',
     518                                                type : 'checkbox',
     519                                                label : editor.lang.select.chkMulti,
     520                                                'default' : '',
     521                                                accessKey : 'M',
     522                                                value : "checked",
     523                                                setup : function( name, element )
     524                                                {
     525                                                        if ( name == 'select' )
     526                                                                this.setValue( element.getAttribute( 'multiple' ) );
     527                                                },
     528                                                commit : function( element )
     529                                                {
     530                                                        if ( this.getValue() )
     531                                                                element.setAttribute( 'multiple', this.getValue() );
     532                                                        else
     533                                                                element.removeAttribute( 'multiple' );
     534                                                }
    536535                                        }
    537536                                ]
    538537                        }
  • _source/plugins/forms/dialogs/textarea.js

     
    7171                                                label : editor.lang.textarea.cols,
    7272                                                'default' : '',
    7373                                                accessKey : 'C',
    74                                                 style : 'width:50px',
     74                                                width: '50px',
    7575                                                validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ),
    7676                                                setup : function( element )
    7777                                                {
     
    9292                                                label : editor.lang.textarea.rows,
    9393                                                'default' : '',
    9494                                                accessKey : 'R',
    95                                                 style : 'width:50px',
     95                                                width: '50px',
    9696                                                validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ),
    9797                                                setup : function( element )
    9898                                                {
  • _source/plugins/forms/dialogs/textfield.js

     
    135135                                                                label : editor.lang.textfield.charWidth,
    136136                                                                'default' : '',
    137137                                                                accessKey : 'C',
    138                                                                 style : 'width:50px',
     138                                                                width: '50px',
    139139                                                                validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed )
    140140                                                        },
    141141                                                        {
     
    144144                                                                label : editor.lang.textfield.maxChars,
    145145                                                                'default' : '',
    146146                                                                accessKey : 'M',
    147                                                                 style : 'width:50px',
     147                                                                width: '50px',
    148148                                                                validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed )
    149149                                                        }
    150150                                                ]
  • _source/plugins/image/dialogs/image.js

     
    188188                return {
    189189                        title : ( dialogType == 'image' ) ? editor.lang.image.title : editor.lang.image.titleButton,
    190190                        minWidth : 420,
    191                         minHeight : 310,
     191                        minHeight : 320,
    192192                        onShow : function()
    193193                        {
    194194                                this.imageElement = false;
     
    710710                                                                                                        type : 'text',
    711711                                                                                                        id : 'txtHSpace',
    712712                                                                                                        width: '60px',
    713                                                                                                         labelLayout : 'horizontal',
     713                                                                                                        labelLayout : ( editor.lang.image.hSpace.length > 15 ? 'vertical' : 'horizontal'  ),
    714714                                                                                                        label : editor.lang.image.hSpace,
    715715                                                                                                        'default' : '',
    716716                                                                                                        onKeyUp : function()
     
    758758                                                                                                        type : 'text',
    759759                                                                                                        id : 'txtVSpace',
    760760                                                                                                        width : '60px',
    761                                                                                                         labelLayout : 'horizontal',
     761                                                                                                        labelLayout : ( editor.lang.image.vSpace.length > 15 ? 'vertical' : 'horizontal'  ),
    762762                                                                                                        label : editor.lang.image.vSpace,
    763763                                                                                                        'default' : '',
    764764                                                                                                        onKeyUp : function()
     
    801801                                                                                                {
    802802                                                                                                        id : 'cmbAlign',
    803803                                                                                                        type : 'select',
    804                                                                                                         labelLayout : 'horizontal',
     804                                                                                                        labelLayout : ( editor.lang.image.align.length > 10 ? 'vertical' : 'horizontal'  ),
    805805                                                                                                        widths : [ '35%','65%' ],
    806806                                                                                                        style : 'width:90px',
    807807                                                                                                        label : editor.lang.image.align,
  • _source/plugins/link/dialogs/link.js

     
    247247        return {
    248248                title : editor.lang.link.title,
    249249                minWidth : 350,
    250                 minHeight : 230,
     250                minHeight : 240,
    251251                contents : [
    252252                        {
    253253                                id : 'info',
     
    616616                                                                id : 'linkTargetType',
    617617                                                                label : editor.lang.link.target,
    618618                                                                'default' : 'notSet',
    619                                                                 style : 'width : 100%;',
     619                                                                style : 'width:150px;',
    620620                                                                'items' :
    621621                                                                [
    622622                                                                        [ editor.lang.link.targetNotSet, 'notSet' ],
     
    768768                                                                                type :  'text',
    769769                                                                                widths : [ '30%', '70%' ],
    770770                                                                                labelLayout : 'horizontal',
     771                                                                                width: '50px',
    771772                                                                                label : editor.lang.link.popupWidth,
    772773                                                                                id : 'width',
    773774                                                                                setup : setupPopupParams,
     
    778779                                                                                type :  'text',
    779780                                                                                labelLayout : 'horizontal',
    780781                                                                                widths : [ '55%', '45%' ],
     782                                                                                width: '50px',
    781783                                                                                label : editor.lang.link.popupLeft,
    782784                                                                                id : 'left',
    783785                                                                                setup : setupPopupParams,
     
    794796                                                                                type :  'text',
    795797                                                                                labelLayout : 'horizontal',
    796798                                                                                widths : [ '30%', '70%' ],
     799                                                                                width: '50px',
    797800                                                                                label : editor.lang.link.popupHeight,
    798801                                                                                id : 'height',
    799802                                                                                setup : setupPopupParams,
     
    805808                                                                                labelLayout : 'horizontal',
    806809                                                                                label : editor.lang.link.popupTop,
    807810                                                                                widths : [ '55%', '45%' ],
     811                                                                                width: '50px',
    808812                                                                                id : 'top',
    809813                                                                                setup : setupPopupParams,
    810814                                                                                commit : commitPopupParams
     
    849853                                        {
    850854                                                type : 'vbox',
    851855                                                padding : 1,
     856                                                style : 'width:330px',
    852857                                                children :
    853858                                                [
    854859                                                        {
    855860                                                                type : 'hbox',
    856                                                                 widths : [ '45%', '35%', '20%' ],
     861                                                                widths : [ null, null, null ],
    857862                                                                children :
    858863                                                                [
    859864                                                                        {
     
    868873                                                                                id : 'advLangDir',
    869874                                                                                label : editor.lang.link.langDir,
    870875                                                                                'default' : '',
    871                                                                                 style : 'width:110px',
     876                                                                                style : 'width:100px',
    872877                                                                                items :
    873878                                                                                [
    874879                                                                                        [ editor.lang.link.langDirNotSet, '' ],
     
    930935                                        {
    931936                                                type : 'vbox',
    932937                                                padding : 1,
     938                                                style : 'width:330px',
    933939                                                children :
    934940                                                [
    935941                                                        {
  • _source/plugins/pastefromword/dialogs/pastefromword.js

     
    156156
    157157                        iframe.setStyles(
    158158                                {
    159                                         width : '346px',
     159                                        width : '340px',
    160160                                        height : '152px',
    161161                                        'background-color' : 'white',
    162162                                        border : '1px solid black'
  • _source/plugins/pastetext/dialogs/pastetext.js

     
    4646                                                                style : 'width:340px;height:170px',
    4747                                                                html :
    4848                                                                        '<textarea style="' +
    49                                                                                 'width:346px;' +
     49                                                                                'width:340px;' +
    5050                                                                                'height:170px;' +
    5151                                                                                'resize: none;' +
    5252                                                                                'border:1px solid black;' +
  • _source/plugins/table/dialogs/table.js

     
    216216                                                                                        id : 'txtRows',
    217217                                                                                        'default' : 3,
    218218                                                                                        label : editor.lang.table.rows,
    219                                                                                         style : 'width:5em',
    220219                                                                                        validate : function()
    221220                                                                                        {
    222221                                                                                                var pass = true,
     
    241240                                                                                        id : 'txtCols',
    242241                                                                                        'default' : 2,
    243242                                                                                        label : editor.lang.table.columns,
    244                                                                                         style : 'width:5em',
    245243                                                                                        validate : function()
    246244                                                                                        {
    247245                                                                                                var pass = true,
     
    269267                                                                                        type : 'select',
    270268                                                                                        id : 'selHeaders',
    271269                                                                                        'default' : '',
     270                                                                                        style : 'width:8em',
    272271                                                                                        label : editor.lang.table.headers,
    273272                                                                                        items :
    274273                                                                                        [
     
    307306                                                                                        id : 'txtBorder',
    308307                                                                                        'default' : 1,
    309308                                                                                        label : editor.lang.table.border,
    310                                                                                         style : 'width:3em',
     309                                                                                        style : 'width:8em',
    311310                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidBorder ),
    312311                                                                                        setup : function( selectedTable )
    313312                                                                                        {
     
    325324                                                                                        id : 'cmbAlign',
    326325                                                                                        type : 'select',
    327326                                                                                        'default' : '',
     327                                                                                        style : 'width:8em',
    328328                                                                                        label : editor.lang.table.align,
    329329                                                                                        items :
    330330                                                                                        [
     
    354354                                                                        [
    355355                                                                                {
    356356                                                                                        type : 'hbox',
    357                                                                                         widths : [ '5em' ],
    358357                                                                                        children :
    359358                                                                                        [
    360359                                                                                                {
    361360                                                                                                        type : 'text',
    362361                                                                                                        id : 'txtWidth',
    363                                                                                                         style : 'width:5em',
     362                                                                                                        style : 'width:6em',
    364363                                                                                                        label : editor.lang.table.width,
    365364                                                                                                        'default' : 200,
    366365                                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidWidth ),
     
    394393                                                                                },
    395394                                                                                {
    396395                                                                                        type : 'hbox',
    397                                                                                         widths : [ '5em' ],
    398396                                                                                        children :
    399397                                                                                        [
    400398                                                                                                {
     
    425423                                                                                {
    426424                                                                                        type : 'text',
    427425                                                                                        id : 'txtCellSpace',
    428                                                                                         style : 'width:3em',
    429426                                                                                        label : editor.lang.table.cellSpace,
    430427                                                                                        'default' : 1,
    431428                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellSpacing ),
     
    444441                                                                                {
    445442                                                                                        type : 'text',
    446443                                                                                        id : 'txtCellPad',
    447                                                                                         style : 'width:3em',
    448444                                                                                        label : editor.lang.table.cellPad,
    449445                                                                                        'default' : 1,
    450446                                                                                        validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellPadding ),
  • _source/skins/kama/dialog.css

     
    174174        margin-top: 10px;
    175175}
    176176
     177.cke_skin_kama .cke_dialog_ui_labeled_label
     178{
     179        white-space: normal;
     180}
     181
    177182.cke_skin_kama .cke_dialog_ui_vbox table,
    178183.cke_skin_kama .cke_dialog_ui_hbox table
    179184{
  • _source/skins/office2003/dialog.css

     
    268268        padding-bottom: 3px;
    269269}
    270270
     271.cke_skin_office2003 .cke_dialog_ui_labeled_label
     272{
     273        white-space: normal;
     274}
     275
    271276.cke_skin_office2003 .cke_dialog_ui_vbox table,
    272277.cke_skin_office2003 .cke_dialog_ui_hbox table
    273278{
  • _source/skins/v2/dialog.css

     
    265265        padding-bottom: 3px;
    266266}
    267267
     268.cke_skin_v2 .cke_dialog_ui_labeled_label
     269{
     270        white-space: normal;
     271}
     272
    268273.cke_skin_v2 .cke_dialog_ui_vbox table,
    269274.cke_skin_v2 .cke_dialog_ui_hbox table
    270275{
  • CHANGES.html

     
    4444        <p>
    4545                Fixed issues:</p>
    4646        <ul>
     47                <li><a href="http://dev.fckeditor.net/ticket/3878">#3878</a> : Fixed dialog layout in Internet Explorer and Webkit.</li>
    4748                <li><a href="http://dev.fckeditor.net/ticket/3882">#3882</a> : Fixed an issue
    4849                        with PasteFromWord dialog in which default values was ignored</li>
    4950                <li><a href="http://dev.fckeditor.net/ticket/3859">#3859</a> : Fixed Flash dialog layout in Webkit</li>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy