hcDetect.appendTo( CKEDITOR.document.getHead() );\r
\r
// Update CKEDITOR.env.\r
- if ( ( CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ) ) )\r
+ // Catch exception needed sometimes for FF. (#4230)\r
+ try\r
+ {\r
+ CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' );\r
+ }\r
+ catch (e)\r
+ {\r
+ CKEDITOR.env.hc = false;\r
+ }\r
+ if ( CKEDITOR.env.hc )\r
CKEDITOR.env.cssClass += ' cke_hc';\r
\r
hcDetect.remove();\r