8
0

ckeditor-dev.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global define, requirejs, CKEDITOR */
  6. 'use strict';
  7. define( 'ckeditor-dev', () => {
  8. return {
  9. /**
  10. * A flag specifying whether CKEditor is running in development mode (original source code).
  11. *
  12. * This property is not defined in production (compiled, build code).
  13. *
  14. * See also {@link #isDebug}.
  15. *
  16. * @member CKEDITOR
  17. */
  18. isDev: true,
  19. // Documented in ckeditor5-core/ckeditor.
  20. getPluginPath( name ) {
  21. return this.basePath + 'node_modules/ckeditor-plugin-' + name + '/src/';
  22. }
  23. };
  24. } );
  25. // For the dev version, we override the "plugin" module.
  26. requirejs.config( {
  27. paths: {
  28. // The RequireJS "plugin" plugin.
  29. 'plugin': CKEDITOR.basePath + 'src/plugin',
  30. // Due to name conflict with the above, we have to save a reference to the core "plugin" module.
  31. // See src/plugin.js for more details.
  32. 'plugin-core': CKEDITOR.basePath + 'node_modules/ckeditor5-core/src/plugin'
  33. }
  34. } );