8
0

classic-editor-short.js 629 B

12345678910111213141516171819202122
  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 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-classic-editor-short' ), {
  9. cloudServices: CS_CONFIG,
  10. toolbar: {
  11. viewportTopOffset: window.getViewportTopOffsetConfig()
  12. }
  13. } )
  14. .then( editor => {
  15. window.editor = editor;
  16. } )
  17. .catch( err => {
  18. console.error( err );
  19. } );