Changeset 4175


Ignore:
Timestamp:
09/01/2009 02:11:26 PM (5 years ago)
Author:
tobiasz.cudnik
Message:

Fixed #4230 - HC detection causes js error.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r4174 r4175  
    5656                <li><a href="http://dev.fckeditor.net/ticket/3438">#3438</a> : Floating panels are off by (-1px, 0px) in RTL mode.</li> 
    5757                <li><a href="http://dev.fckeditor.net/ticket/3370">#3370</a> : Refactored use of CKEDITOR.env.isCustomDomain().</li> 
     58                <li><a href="http://dev.fckeditor.net/ticket/4230">#4230</a> : HC detection caused js error.</li> 
    5859        </ul> 
    5960        <h3> 
  • CKEditor/trunk/_source/core/_bootstrap.js

    r3712 r4175  
    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 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy