ui-language-content.js 670 B

12345678910111213141516171819202122232425
  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-ui-language-content' ), {
  9. language: {
  10. content: 'ar'
  11. },
  12. cloudServices: CS_CONFIG,
  13. toolbar: {
  14. viewportTopOffset: window.getViewportTopOffsetConfig()
  15. }
  16. } )
  17. .then( editor => {
  18. window.editor = editor;
  19. } )
  20. .catch( err => {
  21. console.error( err.stack );
  22. } );