theme-lark.js 829 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals console, window, document */
  6. /* config { "sassImportPath": "./custom.scss" } */
  7. import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
  8. import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
  9. import './extras.scss';
  10. ClassicEditor
  11. .create( document.querySelector( '#snippet-classic-editor' ), {
  12. plugins: [ ArticlePreset ],
  13. toolbar: [ 'headings', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
  14. image: {
  15. toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
  16. }
  17. } )
  18. .then( editor => {
  19. window.editor = editor;
  20. } )
  21. .catch( err => {
  22. console.error( err.stack );
  23. } );