Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 6583)
+++ /CKEditor/trunk/CHANGES.html (revision 6584)
@@ -85,4 +85,5 @@
#6491 : Undesired image dialog dimension lock reset on url change.
#7284 : [FF Quirks] Maximize now works correctly.
+ #6609 : [IE9] Browser in high contrast mode is not properly detected.
Updated the following language files:
- #7124 : Czech;
Index: /CKEditor/trunk/_source/core/_bootstrap.js
===================================================================
--- /CKEditor/trunk/_source/core/_bootstrap.js (revision 6583)
+++ /CKEditor/trunk/_source/core/_bootstrap.js (revision 6584)
@@ -17,17 +17,8 @@
}
- // Check is High Contrast is active by creating a temporary element with a
- // background image.
-
- var useSpacer = CKEDITOR.env.ie && CKEDITOR.env.version < 7,
- useBlank = CKEDITOR.env.ie && CKEDITOR.env.version == 7;
-
- var backgroundImageUrl = useSpacer ? ( CKEDITOR.basePath + 'images/spacer.gif' ) :
- useBlank ? 'about:blank' : 'data:image/png;base64,';
-
+ // Check whether high contrast is active by creating a colored border.
var hcDetect = CKEDITOR.dom.element.createFromHtml(
- '', CKEDITOR.document );
+ '', CKEDITOR.document );
hcDetect.appendTo( CKEDITOR.document.getHead() );
@@ -37,5 +28,5 @@
try
{
- CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' );
+ CKEDITOR.env.hc = hcDetect.getComputedStyle( 'border-top-color' ) == hcDetect.getComputedStyle( 'border-right-color' );
}
catch (e)