image.js 438 B

1234567891011121314151617
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals ClassicEditor, console, window, document */
  6. ClassicEditor
  7. .create( document.querySelector( '#snippet-image' ), {
  8. removePlugins: [ 'ImageToolbar', 'ImageCaption', 'ImageStyle' ]
  9. } )
  10. .then( editor => {
  11. window.editorBasic = editor;
  12. } )
  13. .catch( err => {
  14. console.error( err.stack );
  15. } );