ckeditor.js 484 B

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