balloon-editor.js 576 B

1234567891011121314151617181920212223
  1. /**
  2. * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals console, window, document */
  6. import BalloonEditor from '@ckeditor/ckeditor5-build-balloon/src/ckeditor';
  7. import { TOKEN_URL } from '@ckeditor/ckeditor5-cloudservices/tests/_utils/cloudservices-config';
  8. BalloonEditor
  9. .create( document.querySelector( '#snippet-balloon-editor' ), {
  10. cloudServices: {
  11. tokenUrl: TOKEN_URL
  12. }
  13. } )
  14. .then( editor => {
  15. window.editor = editor;
  16. } )
  17. .catch( err => {
  18. console.error( err );
  19. } );