ckeditor-cjs-version.js 517 B

1234567891011121314151617
  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. .then( editor => {
  10. window.editor = editor;
  11. } )
  12. .catch( error => {
  13. console.error( 'There was a problem initializing the editor.', error );
  14. } );