Ticket #4230: 4230.patch

File 4230.patch, 1.3 KB (added by Tobiasz Cudnik, 11 years ago)
  • _source/core/_bootstrap.js

     
    2222        hcDetect.appendTo( CKEDITOR.document.getHead() );
    2323
    2424        // Update CKEDITOR.env.
    25         if ( ( CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ) ) )
     25        // Catch exception needed sometimes for FF. (#4230)
     26        try
     27        {
     28                CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' );
     29        }
     30        catch (e)
     31        {
     32                CKEDITOR.env.hc = false;
     33        }
     34        if ( CKEDITOR.env.hc )
    2635                CKEDITOR.env.cssClass += ' cke_hc';
    2736
    2837        hcDetect.remove();
  • CHANGES.html

     
    245245                        copy and paste Flash content among different editor instances.</li>
    246246                <li><a href="http://dev.fckeditor.net/ticket/4193">#4193</a> : Automatic font color produced empty span on Firefox 3.5.</li>
    247247                <li><a href="http://dev.fckeditor.net/ticket/4186">#4186</a> : [FF] Fixed First open float panel cause host page scrollbar blinking.</li>
     248                <li><a href="http://dev.fckeditor.net/ticket/4230">#4230</a> : HC detection caused js error.</li>
    248249        </ul>
    249250        <h3>
    250251                CKEditor 3.0 RC</h3>
© 2003 – 2020 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy