8
0

ckeditor.js 508 B

123456789101112131415161718
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /* globals window, document, console */
  6. import ClassicEditor from '../../build/ckeditor';
  7. ClassicEditor.create( document.querySelector( '#editor' ), {
  8. licenseKey: 'GPL'
  9. } )
  10. .then( editor => {
  11. window.editor = editor;
  12. } )
  13. .catch( error => {
  14. console.error( 'There was a problem initializing the editor.', error );
  15. } );