image.js 789 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * @module image/image
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import ImageEngine from './image/imageengine';
  10. import Widget from '@ckeditor/ckeditor5-widget/src/widget';
  11. import ImageTextAlternative from './imagetextalternative';
  12. import '../theme/theme.scss';
  13. /**
  14. * The image plugin.
  15. *
  16. * Uses {@link module:image/image/imageengine~ImageEngine}.
  17. *
  18. * @extends module:core/plugin~Plugin
  19. */
  20. export default class Image extends Plugin {
  21. /**
  22. * @inheritDoc
  23. */
  24. static get requires() {
  25. return [ ImageEngine, Widget, ImageTextAlternative ];
  26. }
  27. /**
  28. * @inheritDoc
  29. */
  30. static get pluginName() {
  31. return 'image/image';
  32. }
  33. }