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