Ticket #4521: 4521_5.patch

File 4521_5.patch, 10.0 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

     
    3131                                width = data.width,
    3232                                height = data.height,
    3333                                dialog = data.dialog,
    34                                 standardsMode = !CKEDITOR.env.quirk;
     34                                contents = dialog.parts.contents;
    3535
    3636                        if ( data.skin != 'office2003' )
    3737                                return;
    3838
    39                         dialog.parts.contents.setStyles(
     39                        contents.setStyles(
    4040                                {
    4141                                        width : width + 'px',
    4242                                        height : height + 'px'
     
    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

     
    99        visibility: visible;
    1010}
    1111
     12/* Force Gecko to consider table as positioned */
     13.cke_skin_office2003 table.cke_dialog.cke_browser_gecko
     14{
     15        display:block;
     16}
     17
    1218.cke_skin_office2003 .cke_dialog_body
    1319{
    1420        margin-left: 16px;
    1521        margin-right: 16px;
    1622        margin-top: 2px;
    1723        margin-bottom: 20px;
    18         position: relative;
    1924        z-index: 1;
     25
     26        /* 'cke_dialog' element has been fixed positioned in all but IE6, while we
     27                need it to be positioned to hold e.g. close button. */
     28        position: relative;
     29        _position: static;
    2030}
    2131
    2232.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

     
    3131                                width = data.width,
    3232                                height = data.height,
    3333                                dialog = data.dialog,
    34                                 standardsMode = !CKEDITOR.env.quirk;
     34                                contents = dialog.parts.contents;
    3535
    3636                        if ( data.skin != 'v2' )
    3737                                return;
    3838
    39                         dialog.parts.contents.setStyles(
     39                        contents.setStyles(
    4040                                {
    4141                                        width : width + 'px',
    4242                                        height : height + 'px'
     
    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

     
    211211                                width = data.width,
    212212                                height = data.height,
    213213                                dialog = data.dialog,
    214                                 contents = dialog.parts.contents,
    215                                 standardsMode = !CKEDITOR.env.quirks;
     214                                contents = dialog.parts.contents;
    216215
    217216                        if ( data.skin != 'kama' )
    218217                                return;
    219218
    220219                        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                                         });
     220                                {
     221                                        width : width + 'px',
     222                                        height : height + 'px'
     223                                });
    234224
    235                         if ( !CKEDITOR.env.ie )
    236                                 return;
    237 
    238225                        // Fix the size of the elements which have flexible lengths.
    239226                        setTimeout( function()
    240227                                {
    241                                         var body = contents.getParent(),
    242                                                 innerDialog = body.getParent();
     228                                        var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
     229                                                body = innerDialog.getChild( 0 );
    243230
    244231                                        // tc
    245232                                        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

     
    99        visibility: visible;
    1010}
    1111
     12/* Force Gecko to consider table as positioned */
     13.cke_skin_kama table.cke_dialog.cke_browser_gecko
     14{
     15        display:block;
     16}
     17
    1218.cke_skin_kama .cke_dialog_body
    1319{
    1420        z-index: 1;
     
    1824        -moz-border-radius: 5px;
    1925        -webkit-border-radius: 5px;
    2026        border-radius: 5px;
     27
     28        /* 'cke_dialog' element has been fixed positioned in all but IE6, while we
     29                need it to be positioned to hold e.g. close button. */
     30        position: relative;
     31        _position: static;
    2132}
    2233
    2334.cke_skin_kama .cke_dialog_tl,
  • _source/skins/v2/dialog.css

     
    99        visibility: visible;
    1010}
    1111
     12/* Force Gecko to consider table as positioned */
     13.cke_skin_v2 table.cke_dialog.cke_browser_gecko
     14{
     15        display:block;
     16}
     17
    1218.cke_skin_v2 .cke_dialog_body
    1319{
    1420        margin-left: 16px;
    1521        margin-right: 16px;
    1622        margin-top: 2px;
    1723        margin-bottom: 20px;
    18         position: relative;
    1924        z-index: 1;
     25
     26        /* 'cke_dialog' element has been fixed positioned in all but IE6, while we
     27                need it to be positioned to hold e.g. close button. */
     28        position: relative;
     29        _position: static;
     30       
    2031}
    2132
    2233.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