placeholder-custom.js 598 B

1234567891011121314151617181920
  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, ClassicEditor */
  6. import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
  7. ClassicEditor
  8. .create( document.querySelector( '#snippet-placeholder-custom' ), {
  9. cloudServices: CS_CONFIG,
  10. placeholder: 'Type the content here!'
  11. } )
  12. .then( editor => {
  13. window.editor = editor;
  14. } )
  15. .catch( err => {
  16. console.error( err.stack );
  17. } );