text: /**
   * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
   * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
   */
  
  /* globals ClassicEditor, console, window, document */
  
  import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config.js';
  
  ClassicEditor
  	.create( document.querySelector( '#snippet-image-resize-buttons-dropdown' ), {
  		removePlugins: [ 'LinkImage', 'AutoImage' ],
  		ui: {
  			viewportOffset: {
  				top: window.getViewportTopOffsetConfig()
  			}
  		},
  		image: {
  			resizeUnit: '%',
  			resizeOptions: [
  				{
  					name: 'resizeImage:original',
  					label: 'Original',
  					value: null
  				},
  				{
  					name: 'resizeImage:40',
  					label: '40%',
  					value: '40'
  				},
  				{
  					name: 'resizeImage:60',
  					label: '60%',
  					value: '60'
  				}
  			],
  			toolbar: [ 'resizeImage' ]
  		},
  		cloudServices: CS_CONFIG
  	} )
  	.then( editor => {
  		window.editorResizeUIDropdown = editor;
  	} )
  	.catch( err => {
  		console.error( err );
  	} );
  