8
0

paste-from-office.js 618 B

1234567891011121314151617181920
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  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. placeholder: 'Paste the content here to test the feature.',
  10. cloudServices: CS_CONFIG
  11. } )
  12. .then( editor => {
  13. window.editor = editor;
  14. } )
  15. .catch( err => {
  16. console.error( err.stack );
  17. } );