Ticket #4521: 4521_4.patch

File 4521_4.patch, 8.3 KB (added by Garry Yao, 14 years ago)
  • _source/skins/kama/mainui.css

     
    66.cke_skin_kama
    77{
    88        display: block;
    9         _display: inline-block;
    109}
    1110
    1211/* Main editor only settings. */
  • _source/skins/office2003/skin.js

     
    4848                        // Fix the size of the elements which have flexible lengths.
    4949                        var fixSize = function()
    5050                                {
    51                                         var content = dialog.parts.contents,
    52                                                 body = content.getParent(),
    53                                                 innerDialog = body.getParent();
     51                                        var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
     52                                                body = innerDialog.getChild( 0 );
    5453
    5554                                        // tc
    5655                                        var el = innerDialog.getChild( 2 );
  • _source/skins/office2003/dialog.css

     
    1515        margin-right: 16px;
    1616        margin-top: 2px;
    1717        margin-bottom: 20px;
    18         position: relative;
    1918        z-index: 1;
     19
     20        /* 'cke_dialog' element has been fixed positioned in all but IE6, while we
     21                need it to be positioned to hold e.g. close button. */
     22        position: relative;
     23        _position: static;
    2024}
    2125
    2226.cke_skin_office2003 .cke_dialog_tl,
  • _source/plugins/dialog/plugin.js

     
    809809                                                        children : contents.elements,
    810810                                                        expand : !!contents.expand,
    811811                                                        padding : contents.padding,
    812                                                         style : contents.style || 'width: 100%; height: 100%;'
     812                                                        style : contents.style || 'width: 100%;'
    813813                                                }, pageHtml );
    814814
    815815                        // Create the HTML for the tab and the content block.
  • _source/skins/v2/skin.js

     
    4848                        // Fix the size of the elements which have flexible lengths.
    4949                        setTimeout( function()
    5050                                {
    51                                         var content = dialog.parts.contents,
    52                                                 body = content.getParent(),
    53                                                 innerDialog = body.getParent();
     51                                        var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
     52                                                body = innerDialog.getChild( 0 );
    5453
    5554                                        // tc
    5655                                        var el = innerDialog.getChild( 2 );
  • _source/skins/kama/skin.js

     
    218218                                return;
    219219
    220220                        contents.setStyles(
    221                                 ( CKEDITOR.env.ie || ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ) ?         // IE && FF2
    222                                         {
    223                                                 width : width + 'px',
    224                                                 height : height + 'px'
    225                                         }
    226                                 :
    227                                         {
    228                                                 // To avoid having scrollbars in the dialogs, we're
    229                                                 // (for now) using the "min-xxx" properties, for
    230                                                 // browsers which well support it (#3878).
    231                                                 'min-width' : width + 'px',
    232                                                 'min-height' : height + 'px'
    233                                         });
     221                        {
     222                                'width' : width + 'px',
     223                                'height' : height + 'px'
     224                        } );
    234225
    235                         if ( !CKEDITOR.env.ie )
    236                                 return;
    237 
    238226                        // Fix the size of the elements which have flexible lengths.
    239227                        setTimeout( function()
    240228                                {
    241                                         var body = contents.getParent(),
    242                                                 innerDialog = body.getParent();
     229                                        var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
     230                                                body = innerDialog.getChild( 0 );
    243231
    244232                                        // tc
    245233                                        var el = innerDialog.getChild( 2 );
  • _source/themes/default/theme.js

     
    102102                                                '" dir="', editor.lang.dir, '"' +
    103103                                                ' lang="', editor.langCode, '"' +
    104104                                                '>' +
    105 
    106                                                 '<div class="cke_dialog', ' ' + CKEDITOR.env.cssClass,
     105                                                '<table class="cke_dialog', ' ' + CKEDITOR.env.cssClass,
    107106                                                        ' cke_', editor.lang.dir, '" style="position:absolute">' +
     107                                                        '<tr><td>' +
    108108                                                        '<div class="%body">' +
    109109                                                                '<div id="%title#" class="%title"></div>' +
    110110                                                                '<div id="%close_button#" class="%close_button">' +
    111111                                                                        '<span>X</span>' +
    112112                                                                '</div>' +
    113113                                                                '<div id="%tabs#" class="%tabs"></div>' +
    114                                                                 '<div id="%contents#" class="%contents"></div>' +
     114                                                                  '<table class="%contents"><tr>' +
     115                                                                  '<td id="%contents#" class="%contents"></td>' +
     116                                                                  '</tr></table>' +
    115117                                                                '<div id="%footer#" class="%footer"></div>' +
    116118                                                        '</div>' +
    117119                                                        '<div id="%tl#" class="%tl"></div>' +
     
    122124                                                        '<div id="%bl#" class="%bl"></div>' +
    123125                                                        '<div id="%bc#" class="%bc"></div>' +
    124126                                                        '<div id="%br#" class="%br"></div>' +
    125                                                 '</div>',
     127                                                        '</td></tr>' +
     128                                                '</table>',
    126129
    127130                                                //Hide the container when loading skins, later restored by skin css.
    128131                                                ( CKEDITOR.env.ie ? '' : '<style>.cke_dialog{visibility:hidden;}</style>' ),
     
    132135                                        .replace( /#/g, '_' + baseIdNumber )
    133136                                        .replace( /%/g, 'cke_dialog_' ) );
    134137
    135                         var body = element.getChild( [ 0, 0 ] );
     138                        var body = element.getChild( [ 0, 0, 0, 0, 0 ] ),
     139                                title = body.getChild( 0 ),
     140                                close = body.getChild( 1 );
    136141
    137142                        // Make the Title and Close Button unselectable.
    138                         body.getChild( 0 ).unselectable();
    139                         body.getChild( 1 ).unselectable();
     143                        title.unselectable();
     144                        close.unselectable();
    140145
    141146
    142147                        return {
     
    144149                                parts :
    145150                                {
    146151                                        dialog          : element.getChild( 0 ),
    147                                         title           : body.getChild( 0 ),
    148                                         close           : body.getChild( 1 ),
     152                                        title           : title,
     153                                        close           : close,
    149154                                        tabs            : body.getChild( 2 ),
    150                                         contents        : body.getChild( 3 ),
     155                                        contents        : body.getChild( [ 3, 0, 0, 0 ] ),
    151156                                        footer          : body.getChild( 4 )
    152157                                }
    153158                        };
  • _source/skins/kama/dialog.css

     
    1818        -moz-border-radius: 5px;
    1919        -webkit-border-radius: 5px;
    2020        border-radius: 5px;
     21
     22        /* 'cke_dialog' element has been fixed positioned in all but IE6, while we
     23                need it to be positioned to hold e.g. close button. */
     24        position: relative;
     25        _position: static;
    2126}
    2227
    2328.cke_skin_kama .cke_dialog_tl,
  • _source/skins/v2/dialog.css

     
    1515        margin-right: 16px;
    1616        margin-top: 2px;
    1717        margin-bottom: 20px;
    18         position: relative;
    1918        z-index: 1;
     19
     20        /* 'cke_dialog' element has been fixed positioned in all but IE6, while we
     21                need it to be positioned to hold e.g. close button. */
     22        position: relative;
     23        _position: static;
     24       
    2025}
    2126
    2227.cke_skin_v2 .cke_dialog_tl,
  • _source/plugins/image/dialogs/image.js

     
    442442
    443443                                                                                                        this.getDialog().dontResetSize = true;
    444444
    445                                                                                                         // In IE7 the dialog is being rendered improperly when loading
    446                                                                                                         // an image with a long URL. So we need to delay it a bit. (#4122)
    447                                                                                                         setTimeout( function()
    448                                                                                                                 {
    449                                                                                                                         field.setValue( url );          // And call this.onChange()
    450                                                                                                                         // Manually set the initial value.(#4191)
    451                                                                                                                         field.setInitValue();
    452                                                                                                                         field.focus();
    453                                                                                                                 }, 0 );
     445                                                                                                        field.setValue( url );          // And call this.onChange()
     446                                                                                                        // Manually set the initial value.(#4191)
     447                                                                                                        field.setInitValue();
     448                                                                                                        field.focus();
    454449                                                                                                }
    455450                                                                                        },
    456451                                                                                        commit : function( type, element )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy