font.js 964 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  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. *
  19. * For a detailed overview, check the {@glink features/font Font feature} documentation
  20. * and the {@glink api/font package page}.
  21. *
  22. * @extends module:core/plugin~Plugin
  23. */
  24. export default class Font extends Plugin {
  25. /**
  26. * @inheritDoc
  27. */
  28. static get requires() {
  29. return [ FontFamily, FontSize, FontColor, FontBackgroundColor ];
  30. }
  31. /**
  32. * @inheritDoc
  33. */
  34. static get pluginName() {
  35. return 'Font';
  36. }
  37. }