Ticket #3916: 3916.patch

File 3916.patch, 3.5 KB (added by Tobiasz Cudnik, 15 years ago)
  • _source/core/config.js

     
    216216        /**
    217217         * The editor width in CSS size format or pixel integer.
    218218         * @type String|Number
    219          * @default '100%'
     219         * @default ''
    220220         * @example
    221221         */
    222         width : '100%',
     222        width : '',
    223223
    224224        /**
    225225         * The base Z-index for floating dialogs and popups.
  • _source/themes/default/theme.js

     
    2424                        var bottomHtml          = editor.fireOnce( 'themeSpace', { space : 'bottom', html : '' } ).html;
    2525
    2626                        var height      = contentsHtml && editor.config.height;
    27                         var width       = editor.config.width;
    2827
    2928                        var tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0;
    3029
     
    3433                        else if ( !isNaN( height ) )
    3534                                height += 'px';
    3635
    37                         if ( !isNaN( width ) )
    38                                 width += 'px';
     36                        var style = '';
     37                        var width       = editor.config.width;
     38
     39                        if ( width )
     40                        {
     41                                if ( !isNaN( width ) )
     42                                        width += 'px';
    3943
     44                                style += "width: " + width + ";";
     45                        }
     46
    4047                        var container = CKEDITOR.dom.element.createFromHtml( [
    4148                                '<span' +
    4249                                        ' id="cke_', name, '"' +
     
    4552                                        ' dir="', editor.lang.dir, '"' +
    4653                                        ' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' +
    4754                                        ' lang="', editor.langCode, '"' +
    48                                         ' tabindex="' + tabIndex + '">' +
     55                                        ' tabindex="' + tabIndex + '"' +
     56                                        ( style ? ' style="' + style + '"' : '' ) +
     57                                        '>' +
    4958                                        '<span class="' , CKEDITOR.env.cssClass, '">' +
    5059                                                '<span class="cke_wrapper cke_', editor.lang.dir, '">' +
    51                                                         '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" style="width:', width, '"><tbody>' +
     60                                                        '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0"><tbody>' +
    5261                                                                '<tr', topHtml          ? '' : ' style="display:none"', '><td id="cke_top_'             , name, '" class="cke_top">'    , topHtml               , '</td></tr>' +
    5362                                                                '<tr', contentsHtml     ? '' : ' style="display:none"', '><td id="cke_contents_', name, '" class="cke_contents" style="height:', height, '">', contentsHtml, '</td></tr>' +
    5463                                                                '<tr', bottomHtml       ? '' : ' style="display:none"', '><td id="cke_bottom_'  , name, '" class="cke_bottom">' , bottomHtml    , '</td></tr>' +
  • _source/skins/office2003/mainui.css

     
    99        border: solid 1px #dcdcdc;
    1010*/
    1111        display: inline-table;
     12        width: 100%;
    1213}
    1314
    1415.cke_skin_office2003,
  • _source/skins/kama/mainui.css

     
    4545        border: solid 1px #dcdcdc;
    4646*/
    4747        display: inline-table;
     48        width: 100%;
    4849}
    4950
    5051.cke_skin_kama .ltr .cke_browser_ie iframe
  • _source/skins/v2/mainui.css

     
    99        border: solid 1px #dcdcdc;
    1010*/
    1111        display: inline-table;
     12        width: 100%;
    1213}
    1314
    1415.cke_skin_v2
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy