/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /* globals console:false */ import testUtils from '../../../tests/_utils/utils'; import StickyToolbarView from '../../../src/toolbar/sticky/stickytoolbarview'; import 'ckeditor5-theme-lark/theme/theme.scss'; testUtils.createTestUIView( { top: '.ck-editor__top' } ) .then( ui => { createToolbar( ui.top ); } ) .catch( err => { console.error( err.stack ); } ); function createToolbar( collection ) { const toolbar = new StickyToolbarView(); toolbar.limiterElement = collection._parentElement.parentNode; collection.add( toolbar ).then( () => { toolbar.isActive = true; } ); }