balloon-block-editor.js 621 B

123456789101112131415161718192021
  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 console, window, document */
  6. import BalloonEditor from '@ckeditor/ckeditor5-build-balloon-block/src/ckeditor';
  7. import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
  8. BalloonEditor
  9. .create( document.querySelector( '#snippet-balloon-block-editor' ), {
  10. cloudServices: CS_CONFIG
  11. } )
  12. .then( editor => {
  13. window.editor = editor;
  14. } )
  15. .catch( err => {
  16. console.error( err );
  17. } );