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
   */
  
  /* global document, window, console, ClassicEditor */
  
  ClassicEditor
  	.create( document.querySelector( '#demo-editor' ), {
  		toolbar: {
  			items: [
  				'heading',
  				'|',
  				'bold',
  				'italic',
  				'bulletedList',
  				'numberedList',
  				'|',
  				'outdent',
  				'indent',
  				'|',
  				'blockQuote',
  				'link',
  				'|',
  				'mediaEmbed',
  				'insertTable',
  				'|',
  				'undo',
  				'redo'
  			]
  		},
  		ui: {
  			viewportOffset: {
  				top: window.getViewportTopOffsetConfig()
  			}
  		},
  		table: {
  			contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
  		}
  	} )
  	.then( editor => {
  		window.editor = editor;
  
  		document.getElementById( 'demo-word-count' ).appendChild( editor.plugins.get( 'WordCount' ).wordCountContainer );
  	} )
  	.catch( err => {
  		console.error( err.stack );
  	} );
  