8
0

list-style.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /* globals console, window, document */
  6. import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
  7. import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
  8. import Code from '@ckeditor/ckeditor5-basic-styles/src/code';
  9. import Heading from '@ckeditor/ckeditor5-heading/src/heading';
  10. import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
  11. import Table from '@ckeditor/ckeditor5-table/src/table';
  12. import TablePropertiesEditing from '@ckeditor/ckeditor5-table/src/tableproperties/tablepropertiesediting';
  13. import TableCellPropertiesEditing from '@ckeditor/ckeditor5-table/src/tablecellproperties/tablecellpropertiesediting';
  14. import List from '../../src/list';
  15. import ListStyle from '../../src/liststyle';
  16. import Indent from '@ckeditor/ckeditor5-indent/src/indent';
  17. import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock';
  18. import TodoList from '../../src/todolist';
  19. import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat';
  20. import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
  21. import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
  22. ClassicEditor
  23. .create( document.querySelector( '#editor' ), {
  24. plugins: [
  25. Essentials,
  26. Bold,
  27. Italic,
  28. Code,
  29. Heading,
  30. List,
  31. TodoList,
  32. Paragraph,
  33. ListStyle,
  34. Table,
  35. TablePropertiesEditing,
  36. TableCellPropertiesEditing,
  37. Indent,
  38. IndentBlock,
  39. RemoveFormat
  40. ],
  41. toolbar: [
  42. 'heading',
  43. '|',
  44. 'bold',
  45. 'italic',
  46. '|',
  47. 'removeFormat',
  48. '|',
  49. 'bulletedList', 'numberedList', 'todoList',
  50. '|',
  51. 'outdent',
  52. 'indent',
  53. '|',
  54. 'undo', 'redo'
  55. ]
  56. } )
  57. .then( editor => {
  58. window.editor = editor;
  59. } )
  60. .catch( err => {
  61. console.error( err.stack );
  62. } );