Sha256: 29053b45d900f2fb3dbe4941e877313e12095e7a94753c4385c6f42a77ced1a7
Contents?: true
Size: 1.68 KB
Versions: 22
Compression:
Stored size: 1.68 KB
Contents
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview API initialization code. */ (function() { // Check is High Contrast is active by creating a temporary element with a // background image. var testImage = ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) ? ( CKEDITOR.basePath + 'images/spacer.gif' ) : 'about:blank'; var hcDetect = CKEDITOR.dom.element.createFromHtml( '<div style="width:0px;height:0px;' + 'position:absolute;left:-10000px;' + 'background-image:url(' + testImage + ')"></div>', CKEDITOR.document ); hcDetect.appendTo( CKEDITOR.document.getHead() ); // Update CKEDITOR.env. if ( ( CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ) ) ) CKEDITOR.env.cssClass += ' cke_hc'; hcDetect.remove(); })(); // Load core plugins. CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function() { CKEDITOR.status = 'loaded'; CKEDITOR.fire( 'loaded' ); // Process all instances created by the "basic" implementation. var pending = CKEDITOR._.pending; if ( pending ) { delete CKEDITOR._.pending; for ( var i = 0 ; i < pending.length ; i++ ) CKEDITOR.add( pending[ i ] ); } }); /* TODO: Enable the following and check if effective. if ( CKEDITOR.env.ie ) { // Remove IE mouse flickering on IE6 because of background images. try { document.execCommand( 'BackgroundImageCache', false, true ); } catch (e) { // We have been reported about loading problems caused by the above // line. For safety, let's just ignore errors. } } */
Version data entries
22 entries across 22 versions & 6 rubygems