ckeditor-dev.js 757 B

12345678910111213141516171819202122232425262728
  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', function() {
  8. return {
  9. getPluginPath: function( name ) {
  10. return this.basePath + 'node_modules/ckeditor-plugin-' + name + '/src/';
  11. }
  12. };
  13. } );
  14. // For the dev version, we override the "plugin" module.
  15. requirejs.config( {
  16. paths: {
  17. // The RequireJS "plugin" plugin.
  18. 'plugin': CKEDITOR.basePath + 'src/plugin',
  19. // Due to name conflict with the above, we have to save a reference to the core "plugin" module.
  20. // See src/plugin.js for more details.
  21. 'plugin-core': CKEDITOR.basePath + 'node_modules/ckeditor5-core/src/plugin'
  22. }
  23. } );