Importation du code de ckeditor 4.3.4 en conservant les développements Plinn et en...
[ckeditor.git] / skins / ckeditor / _source / core / _bootstrap.js
diff --git a/skins/ckeditor/_source/core/_bootstrap.js b/skins/ckeditor/_source/core/_bootstrap.js
deleted file mode 100644 (file)
index 1fa5f5e..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
-For licensing, see LICENSE.html or http://ckeditor.com/license\r
-*/\r
-\r
-/**\r
- * @fileOverview API initialization code.\r
- */\r
-\r
-(function()\r
-{\r
-       // Disable HC detaction in WebKit. (#5429)\r
-       if ( CKEDITOR.env.webkit )\r
-       {\r
-               CKEDITOR.env.hc = false;\r
-               return;\r
-       }\r
-\r
-       // Check whether high contrast is active by creating a colored border.\r
-       var hcDetect = CKEDITOR.dom.element.createFromHtml(\r
-               '<div style="width:0px;height:0px;position:absolute;left:-10000px;' +\r
-                       'border: 1px solid;border-color: red blue;"></div>', CKEDITOR.document );\r
-\r
-       hcDetect.appendTo( CKEDITOR.document.getHead() );\r
-\r
-       // Update CKEDITOR.env.\r
-       // Catch exception needed sometimes for FF. (#4230)\r
-       try\r
-       {\r
-               CKEDITOR.env.hc = hcDetect.getComputedStyle( 'border-top-color' ) == hcDetect.getComputedStyle( 'border-right-color' );\r
-       }\r
-       catch (e)\r
-       {\r
-               CKEDITOR.env.hc = false;\r
-       }\r
-\r
-       if ( CKEDITOR.env.hc )\r
-               CKEDITOR.env.cssClass += ' cke_hc';\r
-\r
-       hcDetect.remove();\r
-})();\r
-\r
-// Load core plugins.\r
-CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function()\r
-       {\r
-               CKEDITOR.status = 'loaded';\r
-               CKEDITOR.fire( 'loaded' );\r
-\r
-               // Process all instances created by the "basic" implementation.\r
-               var pending = CKEDITOR._.pending;\r
-               if ( pending )\r
-               {\r
-                       delete CKEDITOR._.pending;\r
-\r
-                       for ( var i = 0 ; i < pending.length ; i++ )\r
-                               CKEDITOR.add( pending[ i ] );\r
-               }\r
-       });\r
-\r
-// Needed for IE6 to not request image (HTTP 200 or 304) for every CSS background. (#6187)\r
-if ( CKEDITOR.env.ie )\r
-{\r
-       // Remove IE mouse flickering on IE6 because of background images.\r
-       try\r
-       {\r
-               document.execCommand( 'BackgroundImageCache', false, true );\r
-       }\r
-       catch (e)\r
-       {\r
-               // We have been reported about loading problems caused by the above\r
-               // line. For safety, let's just ignore errors.\r
-       }\r
-}\r
-\r
-/**\r
- * Indicates that CKEditor is running on a High Contrast environment.\r
- * @name CKEDITOR.env.hc\r
- * @example\r
- * if ( CKEDITOR.env.hc )\r
- *     alert( 'You're running on High Contrast mode. The editor interface will get adapted to provide you a better experience.' );\r
- */\r
-\r
-/**\r
- * Fired when a CKEDITOR core object is fully loaded and ready for interaction.\r
- * @name CKEDITOR#loaded\r
- * @event\r
- */\r