6062.js 856 B

123456789101112131415161718192021222324252627
  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. ClassicEditor
  9. .create( document.querySelector( '#editor' ), {
  10. plugins: [ ArticlePluginSet ],
  11. toolbar: [
  12. 'heading', '|', 'insertTable', '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo'
  13. ],
  14. table: {
  15. contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ],
  16. tableToolbar: [ 'bold', 'italic' ]
  17. }
  18. } )
  19. .then( editor => {
  20. window.editor = editor;
  21. } )
  22. .catch( err => {
  23. console.error( err.stack );
  24. } );