indent-block.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
  8. import Indent from '../../src/indent';
  9. import IndentBlock from '../../src/indentblock';
  10. ClassicEditor
  11. .create( document.querySelector( '#editor' ), {
  12. plugins: [ ArticlePluginSet, Indent, IndentBlock ],
  13. toolbar: [
  14. 'heading',
  15. '|',
  16. 'outdent',
  17. 'indent',
  18. '|',
  19. 'bulletedList',
  20. 'numberedList',
  21. '|',
  22. 'blockQuote',
  23. 'insertTable',
  24. 'undo',
  25. 'redo'
  26. ],
  27. image: {
  28. toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
  29. },
  30. table: {
  31. contentToolbar: [
  32. 'tableColumn',
  33. 'tableRow',
  34. 'mergeTableCells'
  35. ]
  36. }
  37. } )
  38. .then( editor => {
  39. window.editor = editor;
  40. } )
  41. .catch( err => {
  42. console.error( err.stack );
  43. } );