list.js 827 B

12345678910111213141516171819202122232425
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals console, window, document */
  6. import ClassicEditor from 'ckeditor5/editor-classic/classic.js';
  7. import Enter from 'ckeditor5/enter/enter.js';
  8. import Typing from 'ckeditor5/typing/typing.js';
  9. import Heading from 'ckeditor5/heading/heading.js';
  10. import Paragraph from 'ckeditor5/paragraph/paragraph.js';
  11. import Undo from 'ckeditor5/undo/undo.js';
  12. import List from 'ckeditor5/list/list.js';
  13. ClassicEditor.create( document.querySelector( '#editor' ), {
  14. plugins: [ Enter, Typing, Heading, Paragraph, Undo, List ],
  15. toolbar: [ 'headings', 'bulletedList', 'numberedList', 'undo', 'redo' ]
  16. } )
  17. .then( editor => {
  18. window.editor = editor;
  19. } )
  20. .catch( err => {
  21. console.error( err.stack );
  22. } );