placeholder.js 413 B

1234567891011121314151617
  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, ClassicEditor */
  6. ClassicEditor
  7. .create( document.querySelector( '#snippet-placeholder' ), {
  8. placeholder: 'Type the content here!'
  9. } )
  10. .then( editor => {
  11. window.editor = editor;
  12. } )
  13. .catch( err => {
  14. console.error( err.stack );
  15. } );