imageupload.js 889 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * @module upload/imageupload
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import ImageUploadButton from './imageuploadbutton';
  10. import ImageUploadProgress from './imageuploadprogress';
  11. /**
  12. * Image upload plugin.
  13. * This plugin do not do anything directly, but loads set of specific plugins to enable image uploading:
  14. * * {@link module:upload/imageuploadbutton~ImageUploadButton},
  15. * * {@link module:upload/imageuploadprogress~ImageUploadProgress}.
  16. *
  17. * @extends module:core/plugin~Plugin
  18. */
  19. export default class ImageUpload extends Plugin {
  20. /**
  21. * @inheritDoc
  22. */
  23. static get pluginName() {
  24. return 'ImageUpload';
  25. }
  26. /**
  27. * @inheritDoc
  28. */
  29. static get requires() {
  30. return [ ImageUploadButton, ImageUploadProgress ];
  31. }
  32. }