indent-block.js 1.1 KB

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