1.js 621 B

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