8
0

article.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * @module presets/article
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import TextboxPreset from './textbox';
  10. import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
  11. import Heading from '@ckeditor/ckeditor5-heading/src/heading';
  12. import Image from '@ckeditor/ckeditor5-image/src/image';
  13. import ImageStyle from '@ckeditor/ckeditor5-image/src/imagestyle';
  14. import ImageToolbar from '@ckeditor/ckeditor5-image/src/imagetoolbar';
  15. import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
  16. import Link from '@ckeditor/ckeditor5-link/src/link';
  17. import List from '@ckeditor/ckeditor5-list/src/list';
  18. /**
  19. * Article editor preset. Represents a set of features which enable in the editor
  20. * all functionalities of a simple article editor.
  21. * This preset follows [Editor Recommendations](https://github.com/ckeditor/editor-recommendations).
  22. *
  23. * @extends module:core/plugin~Plugin
  24. */
  25. export default class Article extends Plugin {
  26. static get requires() {
  27. return [ TextboxPreset, Bold, Heading, Image, ImageStyle, ImageToolbar, Italic, Link, List ];
  28. }
  29. }