8
0

tableblockcontent.js 987 B

12345678910111213141516171819202122232425262728293031
  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 Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
  9. ClassicEditor
  10. .create( document.querySelector( '#editor' ), {
  11. plugins: [ ArticlePluginSet, Alignment ],
  12. toolbar: [
  13. 'heading', '|', 'insertTable', '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote',
  14. 'alignment', '|', 'undo', 'redo'
  15. ],
  16. image: {
  17. toolbar: [ 'imageStyle:full', 'imageStyle:side' ]
  18. },
  19. table: {
  20. contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
  21. }
  22. } )
  23. .then( editor => {
  24. window.editor = editor;
  25. } )
  26. .catch( err => {
  27. console.error( err.stack );
  28. } );