8
0

image.js 818 B

12345678910111213141516171819202122
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global document, console */
  6. import ClassicEditor from '/ckeditor5/editor-classic/classic.js';
  7. import EnterFeature from '/ckeditor5/enter/enter.js';
  8. import TypingFeature from '/ckeditor5/typing/typing.js';
  9. import ParagraphFeature from '/ckeditor5/paragraph/paragraph.js';
  10. import UndoFeature from '/ckeditor5/undo/undo.js';
  11. import HeadingFeature from '/ckeditor5/heading/heading.js';
  12. import ImageFeature from '/ckeditor5/image/image.js';
  13. ClassicEditor.create( document.querySelector( '#editor' ), {
  14. features: [ EnterFeature, TypingFeature, ParagraphFeature, UndoFeature, HeadingFeature, ImageFeature ],
  15. toolbar: [ 'headings' ]
  16. } )
  17. .catch( err => {
  18. console.error( err.stack );
  19. } );