Ticket #3879: 3879_3.patch

File 3879_3.patch, 3.3 KB (added by Tobiasz Cudnik, 15 years ago)
  • CHANGES.html

     
    117117                <li><a href="http://dev.fckeditor.net/ticket/3887">#3887</a> : Fixed an issue in which the create
    118118                        list command may leak outside of a selected table cell and into the rest of document.</li>
    119119                <li><a href="http://dev.fckeditor.net/ticket/3916">#3916</a> : Fixed maximize does not enlarge editor width when width is set.</li>
     120                <li><a href="http://dev.fckeditor.net/ticket/3879">#3879</a> : [webkit] Color button panel had incorrect size on first open.</li>
    120121        </ul>
    121122        <h3>
    122123                CKEditor 3.0 RC</h3>
  • _source/plugins/panel/plugin.js

     
    133133                                        className = parentDiv.getParent().getAttribute( 'class' ),
    134134                                        langCode = parentDiv.getParent().getAttribute( 'lang' ),
    135135                                        doc = iframe.getFrameDocument();
    136 
    137136                                // Initialize the IFRAME document body.
    138137                                doc.$.open();
    139138
     
    141140                                if ( CKEDITOR.env.isCustomDomain() )
    142141                                        doc.$.domain = document.domain;
    143142
     143                                var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev )
     144                                        {
     145                                                this.isLoaded = true;
     146                                                if ( this.onLoad )
     147                                                        this.onLoad();
     148                                        }, this ) );
     149
    144150                                doc.$.write(
    145151                                        '<!DOCTYPE html>' +
    146152                                        '<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' +
    147153                                                '<head>' +
    148154                                                        '<style>.' + className + '_container{visibility:hidden}</style>' +
    149155                                                '</head>' +
    150                                                 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0">' +
     156                                                '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' +
     157                                                ' onload="( window.CKEDITOR || window.top.CKEDITOR ).tools.callFunction(' + onLoad + ');">' +
    151158                                                '</body>' +
    152159                                                // It looks strange, but for FF2, the styles must go
    153160                                                // after <body>, so it (body) becames immediatelly
     
    161168                                // Register the CKEDITOR global.
    162169                                win.$.CKEDITOR = CKEDITOR;
    163170
    164                                 win.on( 'load', function( ev )
    165                                         {
    166                                                 this.isLoaded = true;
    167                                                 if ( this.onLoad )
    168                                                         this.onLoad();
    169                                         },
    170                                         this);
    171 
    172171                                doc.on( 'keydown', function( evt )
    173172                                        {
    174173                                                var keystroke = evt.data.getKeystroke();
  • _source/plugins/floatpanel/plugin.js

     
    211211                                                                panel._.currentBlock.element.setStyle( 'display', 'none' ).removeStyle( 'display' );
    212212                                                        }
    213213
    214                                                         if ( !CKEDITOR.env.gecko || panel.isLoaded )
    215                                                         {
    216                                                                 // IE7 needs some time (setting the delay to 0ms won't work) to refresh
    217                                                                 // the scrollHeight. (#3174)
    218                                                                 if ( CKEDITOR.env.ie && CKEDITOR.env.version >= 7 )
    219                                                                         setTimeout( setHeight, 50 );
    220                                                                 else
    221                                                                         setHeight();
    222                                                         }
     214                                                        if ( panel.isLoaded )
     215                                                                setHeight();
    223216                                                        else
    224217                                                                panel.onLoad = setHeight;
    225218                                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy