X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fckeditor_base.js;h=4ad3d87d61e7835796fa761ed5416ebd52351e53;hb=f0610347140239143439a511ee2bd48cb784f470;hp=6e8e4ca32e7c8caf881f7590eb264f88ee8e3e72;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/core/ckeditor_base.js b/_source/core/ckeditor_base.js index 6e8e4ca..4ad3d87 100644 --- a/_source/core/ckeditor_base.js +++ b/_source/core/ckeditor_base.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -9,20 +9,28 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ // #### Compressed Code -// Must be updated on changes in the script, as well as updated in the +// Must be updated on changes in the script as well as updated in the // ckeditor_source.js and ckeditor_basic_source.js files. -// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.3.2',rev:'5805',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f=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;})(); +// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.1',rev:'7072',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f=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;})(); // #### Raw code // ATTENTION: read the above "Compressed Code" notes when changing this code. +/* @Packager.RemoveLine +// Avoid having the editor code initialized twice. (#7588) +// Use CKEDITOR.dom to check whether the full ckeditor.js code has been loaded +// or just ckeditor_basic.js. +// Remove these lines when compressing manually. +if ( window.CKEDITOR && window.CKEDITOR.dom ) + return; +@Packager.RemoveLine */ + if ( !window.CKEDITOR ) { /** - * This is the API entry point. The entire CKEditor code runs under this object. * @name CKEDITOR - * @namespace + * @namespace This is the API entry point. The entire CKEditor code runs under this object. * @example */ window.CKEDITOR = (function() @@ -34,36 +42,37 @@ if ( !window.CKEDITOR ) /** * A constant string unique for each release of CKEditor. Its value * is used, by default, to build the URL for all resources loaded - * by the editor code, guaranteing clean cache results when + * by the editor code, guaranteeing clean cache results when * upgrading. * @type String * @example * alert( CKEDITOR.timestamp ); // e.g. '87dm' */ // The production implementation contains a fixed timestamp, unique - // for each release, generated by the releaser. + // for each release and generated by the releaser. // (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122) - timestamp : 'A73H4H9', + timestamp : 'B5GJ5GG', /** * Contains the CKEditor version number. * @type String * @example - * alert( CKEDITOR.version ); // e.g. 'CKEditor 3.0 Beta' + * alert( CKEDITOR.version ); // e.g. 'CKEditor 3.4.1' */ - version : '3.3.2', + version : '3.6.1', /** * Contains the CKEditor revision number. - * Revision number is incremented automatically after each modification of CKEditor source code. + * The revision number is incremented automatically, following each + * modification to the CKEditor source code. * @type String * @example * alert( CKEDITOR.revision ); // e.g. '3975' */ - revision : '5805', + revision : '7072', /** - * Private object used to hold core stuff. It should not be used out of + * Private object used to hold core stuff. It should not be used outside of * the API code as properties defined here may change at any time * without notice. * @private @@ -71,17 +80,17 @@ if ( !window.CKEDITOR ) _ : {}, /** - * Indicates the API loading status. The following status are available: + * Indicates the API loading status. The following statuses are available: * * @type String * @example - * if ( CKEDITOR.status == 'ready' ) + * if ( CKEDITOR.status == 'loaded' ) * { * // The API can now be fully used. * } @@ -90,16 +99,16 @@ if ( !window.CKEDITOR ) /** * Contains the full URL for the CKEditor installation directory. - * It's possible to manually provide the base path by setting a + * It is possible to manually provide the base path by setting a * global variable named CKEDITOR_BASEPATH. This global variable - * must be set "before" the editor script loading. + * must be set before the editor script loading. * @type String * @example * alert( CKEDITOR.basePath ); // "http://www.example.com/ckeditor/" (e.g.) */ basePath : (function() { - // ATTENTION: fixes on this code must be ported to + // ATTENTION: fixes to this code must be ported to // var basePath in "core/loader.js". // Find out the editor directory path, based on its