1.js 644 B

12345678910111213141516171819202122
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals console:false, document, window */
  6. import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classic';
  7. import Enter from '@ckeditor/ckeditor5-enter/src/enter';
  8. import Typing from '../../../src/typing';
  9. import Heading from '@ckeditor/ckeditor5-heading/src/heading';
  10. ClassicEditor.create( document.querySelector( '#editor' ), {
  11. plugins: [ Enter, Typing, Heading ],
  12. toolbar: [ 'headings' ]
  13. } )
  14. .then( editor => {
  15. window.editor = editor;
  16. } )
  17. .catch( err => {
  18. console.error( err.stack );
  19. } );