+++ /dev/null
-/*\r
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
-For licensing, see LICENSE.html or http://ckeditor.com/license\r
-*/\r
-\r
-/**\r
- * @fileOverview Contains the first and essential part of the {@link CKEDITOR}\r
- * object definition.\r
- */\r
-\r
-// #### Compressed Code\r
-// Must be updated on changes in the script as well as updated in the\r
-// ckeditor_source.js and ckeditor_basic_source.js files.\r
-\r
-// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.6',revision:'7689',rnd:Math.floor(Math.random()*900)+100,_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;if(!d)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/'&&!/[&?]t=/.test(d))d+=(d.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();\r
-\r
-// #### Raw code\r
-// ATTENTION: read the above "Compressed Code" notes when changing this code.\r
-\r
-/* @Packager.RemoveLine\r
-// Avoid having the editor code initialized twice. (#7588)\r
-// Use CKEDITOR.dom to check whether the full ckeditor.js code has been loaded\r
-// or just ckeditor_basic.js.\r
-// Remove these lines when compressing manually.\r
-if ( window.CKEDITOR && window.CKEDITOR.dom )\r
- return;\r
-@Packager.RemoveLine */\r
-\r
-if ( !window.CKEDITOR )\r
-{\r
- /**\r
- * @name CKEDITOR\r
- * @namespace This is the API entry point. The entire CKEditor code runs under this object.\r
- * @example\r
- */\r
- window.CKEDITOR = (function()\r
- {\r
- var CKEDITOR =\r
- /** @lends CKEDITOR */\r
- {\r
-\r
- /**\r
- * A constant string unique for each release of CKEditor. Its value\r
- * is used, by default, to build the URL for all resources loaded\r
- * by the editor code, guaranteeing clean cache results when\r
- * upgrading.\r
- * @type String\r
- * @example\r
- * alert( CKEDITOR.timestamp ); // e.g. '87dm'\r
- */\r
- // The production implementation contains a fixed timestamp, unique\r
- // for each release and generated by the releaser.\r
- // (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122)\r
- timestamp : 'D03G5XL',\r
-\r
- /**\r
- * Contains the CKEditor version number.\r
- * @type String\r
- * @example\r
- * alert( CKEDITOR.version ); // e.g. 'CKEditor 3.4.1'\r
- */\r
- version : '3.6.6',\r
-\r
- /**\r
- * Contains the CKEditor revision number.\r
- * The revision number is incremented automatically, following each\r
- * modification to the CKEditor source code.\r
- * @type String\r
- * @example\r
- * alert( CKEDITOR.revision ); // e.g. '3975'\r
- */\r
- revision : '7689',\r
-\r
- /**\r
- * A 3-digit random integer, valid for the entire life of the CKEDITOR object.\r
- * @type Number\r
- * @example\r
- * alert( CKEDITOR.rnd ); // e.g. '319'\r
- */\r
- rnd : Math.floor( Math.random() * ( 999/*Max*/ - 100/*Min*/ + 1 ) ) + 100/*Min*/,\r
-\r
- /**\r
- * Private object used to hold core stuff. It should not be used outside of\r
- * the API code as properties defined here may change at any time\r
- * without notice.\r
- * @private\r
- */\r
- _ : {},\r
-\r
- /**\r
- * Indicates the API loading status. The following statuses are available:\r
- * <ul>\r
- * <li><b>unloaded</b>: the API is not yet loaded.</li>\r
- * <li><b>basic_loaded</b>: the basic API features are available.</li>\r
- * <li><b>basic_ready</b>: the basic API is ready to load the full core code.</li>\r
- * <li><b>loading</b>: the full API is being loaded.</li>\r
- * <li><b>loaded</b>: the API can be fully used.</li>\r
- * </ul>\r
- * @type String\r
- * @example\r
- * if ( <b>CKEDITOR.status</b> == 'loaded' )\r
- * {\r
- * // The API can now be fully used.\r
- * }\r
- */\r
- status : 'unloaded',\r
-\r
- /**\r
- * Contains the full URL for the CKEditor installation directory.\r
- * It is possible to manually provide the base path by setting a\r
- * global variable named CKEDITOR_BASEPATH. This global variable\r
- * must be set <strong>before</strong> the editor script loading.\r
- * @type String\r
- * @example\r
- * alert( <b>CKEDITOR.basePath</b> ); // "http://www.example.com/ckeditor/" (e.g.)\r
- */\r
- basePath : (function()\r
- {\r
- // ATTENTION: fixes to this code must be ported to\r
- // var basePath in "core/loader.js".\r
-\r
- // Find out the editor directory path, based on its <script> tag.\r
- var path = window.CKEDITOR_BASEPATH || '';\r
-\r
- if ( !path )\r
- {\r
- var scripts = document.getElementsByTagName( 'script' );\r
-\r
- for ( var i = 0 ; i < scripts.length ; i++ )\r
- {\r
- var match = scripts[i].src.match( /(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i );\r
-\r
- if ( match )\r
- {\r
- path = match[1];\r
- break;\r
- }\r
- }\r
- }\r
-\r
- // In IE (only) the script.src string is the raw value entered in the\r
- // HTML source. Other browsers return the full resolved URL instead.\r
- if ( path.indexOf(':/') == -1 )\r
- {\r
- // Absolute path.\r
- if ( path.indexOf( '/' ) === 0 )\r
- path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;\r
- // Relative path.\r
- else\r
- path = location.href.match( /^[^\?]*\/(?:)/ )[0] + path;\r
- }\r
-\r
- if ( !path )\r
- throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';\r
-\r
- return path;\r
- })(),\r
-\r
- /**\r
- * Gets the full URL for CKEditor resources. By default, URLs\r
- * returned by this function contain a querystring parameter ("t")\r
- * set to the {@link CKEDITOR.timestamp} value.<br />\r
- * <br />\r
- * It is possible to provide a custom implementation of this\r
- * function by setting a global variable named CKEDITOR_GETURL.\r
- * This global variable must be set <strong>before</strong> the editor script\r
- * loading. If the custom implementation returns nothing (==null), the\r
- * default implementation is used.\r
- * @param {String} resource The resource whose full URL we want to get.\r
- * It may be a full, absolute, or relative URL.\r
- * @returns {String} The full URL.\r
- * @example\r
- * // e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm\r
- * alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );\r
- * @example\r
- * // e.g. http://www.example.com/skins/default/editor.css?t=87dm\r
- * alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );\r
- * @example\r
- * // e.g. http://www.somesite.com/skins/default/editor.css?t=87dm\r
- * alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );\r
- */\r
- getUrl : function( resource )\r
- {\r
- // If this is not a full or absolute path.\r
- if ( resource.indexOf(':/') == -1 && resource.indexOf( '/' ) !== 0 )\r
- resource = this.basePath + resource;\r
-\r
- // Add the timestamp, except for directories.\r
- if ( this.timestamp && resource.charAt( resource.length - 1 ) != '/' && !(/[&?]t=/).test( resource ) )\r
- resource += ( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) + 't=' + this.timestamp;\r
-\r
- return resource;\r
- }\r
- };\r
-\r
- // Make it possible to override the getUrl function with a custom\r
- // implementation pointing to a global named CKEDITOR_GETURL.\r
- var newGetUrl = window.CKEDITOR_GETURL;\r
- if ( newGetUrl )\r
- {\r
- var originalGetUrl = CKEDITOR.getUrl;\r
- CKEDITOR.getUrl = function ( resource )\r
- {\r
- return newGetUrl.call( CKEDITOR, resource ) ||\r
- originalGetUrl.call( CKEDITOR, resource );\r
- };\r
- }\r
-\r
- return CKEDITOR;\r
- })();\r
-}\r
-\r
-/**\r
- * Function called upon loading a custom configuration file that can\r
- * modify the editor instance configuration ({@link CKEDITOR.editor#config }).\r
- * It is usually defined inside the custom configuration files that can\r
- * include developer defined settings.\r
- * @name CKEDITOR.editorConfig\r
- * @function\r
- * @param {CKEDITOR.config} config A configuration object containing the\r
- * settings defined for a {@link CKEDITOR.editor} instance up to this\r
- * function call. Note that not all settings may still be available. See\r
- * <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Configuration_Loading_Order">Configuration Loading Order</a>\r
- * for details.\r
- * @example\r
- * // This is supposed to be placed in the config.js file.\r
- * CKEDITOR.editorConfig = function( config )\r
- * {\r
- * // Define changes to default configuration here. For example:\r
- * config.language = 'fr';\r
- * config.uiColor = '#AADC6E';\r
- * };\r
- */\r
-\r
-// PACKAGER_RENAME( CKEDITOR )\r