paste-from-office.js 506 B

12345678910111213141516171819
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals ClassicEditor, console, window, document */
  6. import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
  7. ClassicEditor
  8. .create( document.querySelector( '#snippet-paste-from-office' ), {
  9. cloudServices: CS_CONFIG
  10. } )
  11. .then( editor => {
  12. window.editor = editor;
  13. } )
  14. .catch( err => {
  15. console.error( err.stack );
  16. } );