/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* globals document, window, console */ import BalloonEditor from '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor'; import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset'; BalloonEditor .create( document.querySelector( '#editor' ), { plugins: [ ArticlePluginSet ], toolbar: [ 'bold', 'link' ] } ) .then( editor => { window.editor = editor; } ) .catch( err => { console.error( err.stack ); } );