8
0

placeholder-custom.js 609 B

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