X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2F_bootstrap.js;h=f351ce616a7ba633718ebf87a8e3c0b197f96ed3;hb=refs%2Ftags%2Fv3.3;hp=86e1fcee4b302b6f91da1d490b75dd7c0f9f3c2e;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/_bootstrap.js b/_source/core/_bootstrap.js index 86e1fce..f351ce6 100644 --- a/_source/core/_bootstrap.js +++ b/_source/core/_bootstrap.js @@ -9,13 +9,19 @@ For licensing, see LICENSE.html or http://ckeditor.com/license (function() { + // Disable HC detaction in WebKit. (#5429) + if ( CKEDITOR.env.webkit ) + { + CKEDITOR.env.hc = false; + return; + } + // 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,'; @@ -36,6 +42,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { CKEDITOR.env.hc = false; } + if ( CKEDITOR.env.hc ) CKEDITOR.env.cssClass += ' cke_hc'; @@ -76,3 +83,9 @@ if ( CKEDITOR.env.ie ) } } */ + +/** + * Fired when a CKEDITOR core object is fully loaded and ready for interaction. + * @name CKEDITOR#loaded + * @event + */