⚠️ WarningNightly documentation ahead. Switch to the stable editor documentation.
Typedef

WidgetRepositoryToolbarDefinition (widget)

@ckeditor/ckeditor5-widget/src/widgettoolbarrepository

Object

The toolbar definition object used by the toolbar repository to manage toolbars. It contains information necessary to display the toolbar in the contextual balloon and update it during its life (display) cycle.

Filtering

Properties

  • CSS class for the widget balloon when a toolbar is displayed.

  • A function that returns an engine View element the toolbar is to be attached to. For instance, an image widget or a table widget (or null when there is no such element). The function accepts an instance of Selection.

  • The UI view of the toolbar.