/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /* globals console, window, document */ import BalloonEditor from '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor'; import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset'; BalloonEditor .create( document.querySelector( '#snippet-balloon-editor' ), { plugins: [ ArticlePluginSet ], toolbar: [ 'headings', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ], image: { toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ] } } ) .then( editor => { window.editor = editor; } ) .catch( err => { console.error( err ); } );