1.js 614 B

1234567891011121314151617181920
  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 InlineEditor from '../../../../src/inline';
  7. import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
  8. InlineEditor.create( document.querySelector( '#editor' ), {
  9. plugins: [ ArticlePreset ],
  10. toolbar: [ 'headings', 'bold', 'italic', 'link', 'unlink', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ]
  11. } )
  12. .then( editor => {
  13. window.editor = editor;
  14. } )
  15. .catch( err => {
  16. console.error( err.stack );
  17. } );