ckeditor_source.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
  3. For licensing, see LICENSE.html or http://ckeditor.com/license
  4. */
  5. // Compressed version of core/ckeditor_base.js. See original for instructions.
  6. /*jsl:ignore*/
  7. if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.2',revision:'7275',_:{},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;return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/')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;})();
  8. /*jsl:end*/
  9. // Uncomment the following line to have a new timestamp generated for each
  10. // request, having clear cache load of the editor code.
  11. // CKEDITOR.timestamp = ( new Date() ).valueOf();
  12. if ( CKEDITOR.loader )
  13. CKEDITOR.loader.load( 'core/ckeditor' );
  14. else
  15. {
  16. // Set the script name to be loaded by the loader.
  17. CKEDITOR._autoLoad = 'core/ckeditor';
  18. // Include the loader script.
  19. if ( document.body && (!document.readyState || document.readyState == 'complete') )
  20. {
  21. var script = document.createElement( 'script' );
  22. script.type = 'text/javascript';
  23. script.src = CKEDITOR.getUrl( '_source/core/loader.js' );
  24. document.body.appendChild( script );
  25. }
  26. else
  27. {
  28. document.write(
  29. '<script type="text/javascript" src="' + CKEDITOR.getUrl( '_source/core/loader.js' ) + '"></script>' );
  30. }
  31. }