classic-editor.js 532 B

12345678910111213141516171819202122
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals ClassicEditor, console, window, document */
  6. import getToken from '@ckeditor/ckeditor5-easy-image/tests/_utils/gettoken';
  7. getToken()
  8. .then( token => {
  9. return ClassicEditor
  10. .create( document.querySelector( '#snippet-classic-editor' ), {
  11. cloudServices: { token }
  12. } )
  13. .then( editor => {
  14. window.editor = editor;
  15. } );
  16. } )
  17. .catch( err => {
  18. console.error( err );
  19. } );