How to use @ckeditor/ckeditor5-editor-balloon - 1 common examples

To help you get started, we’ve selected a few @ckeditor/ckeditor5-editor-balloon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ckeditor / ckeditor5-media-embed / tests / mediaembedtoolbar.js View on Github external
beforeEach( () => {
		element = document.createElement( 'div' );
		document.body.appendChild( element );
		clock = testUtils.sinon.useFakeTimers();

		return BalloonEditor.create( element, {
			plugins: [ Paragraph, MediaEmbed, MediaEmbedToolbar, FakeButton, Bold ],
			balloonToolbar: [ 'bold' ],
			media: {
				toolbar: [ 'fake_button' ]
			}
		} ).then( _editor => {
			editor = _editor;
			model = editor.model;
			widgetToolbarRepository = editor.plugins.get( 'WidgetToolbarRepository' );
			toolbar = widgetToolbarRepository._toolbarDefinitions.get( 'mediaEmbed' ).view;
			balloon = editor.plugins.get( 'ContextualBalloon' );
			balloonToolbar = editor.plugins.get( 'BalloonToolbar' );
		} );
	} );

@ckeditor/ckeditor5-editor-balloon

Balloon editor implementation for CKEditor 5.

GPL-2.0-or-later
Latest version published 7 days ago

Package Health Score

91 / 100
Full package analysis

Popular @ckeditor/ckeditor5-editor-balloon functions