1.js 716 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals console, window, document */
  6. import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
  7. import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
  8. ClassicEditor
  9. .create( document.querySelector( '#editor' ), {
  10. plugins: [ ArticlePluginSet ],
  11. toolbar: {
  12. items: [
  13. 'heading',
  14. 'bold',
  15. 'italic',
  16. 'link',
  17. 'bulletedList',
  18. 'numberedList',
  19. 'blockQuote',
  20. 'undo',
  21. 'redo'
  22. ]
  23. }
  24. } )
  25. .then( editor => {
  26. window.editor = editor;
  27. } )
  28. .catch( err => {
  29. console.error( err.stack );
  30. } );