ckeditor-cjs-version.js 541 B

12345678910111213141516171819
  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. /* eslint-env commonjs */
  6. /* globals window, document, console */
  7. const ClassicEditor = require( '../../build/ckeditor' );
  8. ClassicEditor.create( document.querySelector( '#editor' ), {
  9. licenseKey: 'GPL'
  10. } )
  11. .then( editor => {
  12. window.editor = editor;
  13. } )
  14. .catch( error => {
  15. console.error( 'There was a problem initializing the editor.', error );
  16. } );