linkimage.js 904 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 link/linkimage
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import LinkImageEditing from './linkimageediting';
  10. import LinkImageUI from './linkimageui';
  11. import '../theme/linkimage.css';
  12. /**
  13. * The `LinkImage` plugin.
  14. *
  15. * This is a "glue" plugin that loads the {@link module:link/linkimageediting~LinkImageEditing link image editing feature}
  16. * and {@link module:link/linkimageui~LinkImageUI link image UI feature}.
  17. *
  18. * @extends module:core/plugin~Plugin
  19. */
  20. export default class LinkImage extends Plugin {
  21. /**
  22. * @inheritDoc
  23. */
  24. static get requires() {
  25. return [ LinkImageEditing, LinkImageUI ];
  26. }
  27. /**
  28. * @inheritDoc
  29. */
  30. static get pluginName() {
  31. return 'LinkImage';
  32. }
  33. }