8
0

build-config.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. module.exports = {
  7. // The editor creator to use.
  8. editor: '@ckeditor/ckeditor5-editor-classic/src/classiceditor',
  9. // The name under which the editor will be exported.
  10. moduleName: 'ClassicEditor',
  11. // Plugins to include in the build.
  12. plugins: [
  13. '@ckeditor/ckeditor5-presets/src/essentials',
  14. '@ckeditor/ckeditor5-autoformat/src/autoformat',
  15. '@ckeditor/ckeditor5-basic-styles/src/bold',
  16. '@ckeditor/ckeditor5-basic-styles/src/italic',
  17. '@ckeditor/ckeditor5-block-quote/src/blockquote',
  18. '@ckeditor/ckeditor5-heading/src/heading',
  19. '@ckeditor/ckeditor5-image/src/image',
  20. '@ckeditor/ckeditor5-image/src/imagecaption',
  21. '@ckeditor/ckeditor5-image/src/imagestyle',
  22. '@ckeditor/ckeditor5-image/src/imagetoolbar',
  23. '@ckeditor/ckeditor5-link/src/link',
  24. '@ckeditor/ckeditor5-list/src/list',
  25. '@ckeditor/ckeditor5-paragraph/src/paragraph',
  26. ],
  27. // UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
  28. language: 'en',
  29. // Editor config.
  30. config: {
  31. toolbar: [
  32. 'headings',
  33. 'bold',
  34. 'italic',
  35. 'link',
  36. 'bulletedList',
  37. 'numberedList',
  38. 'blockQuote',
  39. 'undo',
  40. 'redo'
  41. ],
  42. image: {
  43. toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
  44. }
  45. }
  46. };