horizontalline.js 934 B

12345678910111213141516171819202122232425262728293031323334353637
  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 horizontal-line/horizontalline
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import HorizontalLineEditing from './horizontallineediting';
  10. import HorizontalLineUI from './horizontallineui';
  11. /**
  12. * The horizontal line feature.
  13. *
  14. * It provides the possibility to insert a horizontal line into the rich-text editor.
  15. *
  16. * For a detailed overview, check the {@glink features/horizontal-line Horizontal line feature} documentation.
  17. *
  18. * @extends module:core/plugin~Plugin
  19. */
  20. export default class HorizontalLine extends Plugin {
  21. /**
  22. * @inheritDoc
  23. */
  24. static get requires() {
  25. return [ HorizontalLineEditing, HorizontalLineUI ];
  26. }
  27. /**
  28. * @inheritDoc
  29. */
  30. static get pluginName() {
  31. return 'HorizontalLine';
  32. }
  33. }