8
0

ckeditor.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global requirejs, define, require, window */
  6. 'use strict';
  7. // Basic Require.js configuration.
  8. requirejs.config( {
  9. // Modules are generally relative to the core project.
  10. baseUrl: '../node_modules/ckeditor-core/src/'
  11. } );
  12. ( function( root ) {
  13. if ( root.CKEDITOR ) {
  14. return;
  15. }
  16. /**
  17. * The API entry point. It exposes the basic features necessary to integrate and extend CKEditor.
  18. * @class CKEDITOR
  19. * @singleton
  20. */
  21. var CKEDITOR = root.CKEDITOR = {};
  22. /**
  23. * Defines an AMD module.
  24. *
  25. * See https://github.com/ckeditor/ckeditor5-design/wiki/AMD for more details about our AMD API.
  26. */
  27. CKEDITOR.define = CKEDITOR.define || define;
  28. /**
  29. * Retrieves one or more AMD modules. Note that the CKEditor AMD API doesn't download modules on demand so be sure
  30. * to have their relative scripts available in the page.
  31. *
  32. * See https://github.com/ckeditor/ckeditor5-design/wiki/AMD for more details about our AMD API.
  33. */
  34. CKEDITOR.require = CKEDITOR.require || require;
  35. } )( window );