font.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 font/font
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import FontFamily from './fontfamily';
  10. import FontSize from './fontsize';
  11. import FontColor from './fontcolor';
  12. import FontBackgroundColor from './fontbackgroundcolor';
  13. /**
  14. * A plugin that enables a set of text styling features:
  15. *
  16. * * {@link module:font/fontsize~FontSize},
  17. * * {@link module:font/fontfamily~FontFamily}.
  18. * * {@link module:font/fontcolor~FontColor},
  19. * * {@link module:font/fontbackgroundcolor~FontBackgroundColor}.
  20. *
  21. * For a detailed overview, check the {@glink features/font Font feature} documentation
  22. * and the {@glink api/font package page}.
  23. *
  24. * @extends module:core/plugin~Plugin
  25. */
  26. export default class Font extends Plugin {
  27. /**
  28. * @inheritDoc
  29. */
  30. static get requires() {
  31. return [ FontFamily, FontSize, FontColor, FontBackgroundColor ];
  32. }
  33. /**
  34. * @inheritDoc
  35. */
  36. static get pluginName() {
  37. return 'Font';
  38. }
  39. }