strikethrough.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 basic-styles/strikethrough
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import StrikethroughEditing from './strikethrough/strikethroughediting';
  10. import StrikethroughUI from './strikethrough/strikethroughui';
  11. /**
  12. * The strikethrough feature.
  13. *
  14. * For a detailed overview check the {@glink features/basic-styles Basic styles feature documentation}
  15. * and the {@glink api/basic-styles package page}.
  16. *
  17. * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
  18. * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
  19. *
  20. * @extends module:core/plugin~Plugin
  21. */
  22. export default class Strikethrough extends Plugin {
  23. /**
  24. * @inheritDoc
  25. */
  26. static get requires() {
  27. return [ StrikethroughEditing, StrikethroughUI ];
  28. }
  29. /**
  30. * @inheritDoc
  31. */
  32. static get pluginName() {
  33. return 'Strikethrough';
  34. }
  35. }