image-toolbar.js 530 B

1234567891011121314151617181920212223
  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-toolbar' ), {
  8. removePlugins: [ 'ImageCaption', 'ImageStyle' ],
  9. image: {
  10. toolbar: [ 'imageTextAlternative' ]
  11. },
  12. toolbar: {
  13. viewportTopOffset: 60
  14. }
  15. } )
  16. .then( editor => {
  17. window.editorToolbar = editor;
  18. } )
  19. .catch( err => {
  20. console.error( err.stack );
  21. } );