imagecaption.js 796 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /**
  6. * @module image/imagecaption
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import ImageCaptionEditing from './imagecaption/imagecaptionediting';
  10. import '../theme/imagecaption.css';
  11. /**
  12. * The image caption plugin.
  13. *
  14. * For a detailed overview, check the {@glink features/image#image-captions image caption} documentation.
  15. *
  16. * @extends module:core/plugin~Plugin
  17. */
  18. export default class ImageCaption extends Plugin {
  19. /**
  20. * @inheritDoc
  21. */
  22. static get requires() {
  23. return [ ImageCaptionEditing ];
  24. }
  25. /**
  26. * @inheritDoc
  27. */
  28. static get pluginName() {
  29. return 'ImageCaption';
  30. }
  31. }