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