| 123456789101112131415161718192021222324 |
- /**
- * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- /* globals console, document, window */
- import ClassicEditor from 'ckeditor5-editor-classic/src/classic';
- import Enter from 'ckeditor5-enter/src/enter';
- import Typing from 'ckeditor5-typing/src/typing';
- import Heading from 'ckeditor5-heading/src/heading';
- import Paragraph from 'ckeditor5-paragraph/src/paragraph';
- import Undo from 'ckeditor5-undo/src/undo';
- ClassicEditor.create( document.querySelector( '#editor' ), {
- plugins: [ Enter, Typing, Undo, Heading, Paragraph ],
- toolbar: [ 'headings', 'undo', 'redo' ]
- } )
- .then( editor => {
- window.editor = editor;
- } )
- .catch( err => {
- console.error( err.stack );
- } );
|