8
0
Pārlūkot izejas kodu

Fix toolbar usage for widgets.

Mateusz Samsel 6 gadi atpakaļ
vecāks
revīzija
09275b7171

+ 3 - 1
packages/ckeditor5-widget/src/widgettoolbarrepository.js

@@ -117,7 +117,9 @@ export default class WidgetToolbarRepository extends Plugin {
 	 */
 	register( toolbarId, { items, getRelatedElement, balloonClassName = 'ck-toolbar-container' } ) {
 		const editor = this.editor;
-		const toolbarView = new ToolbarView();
+		const locale = this.editor.locale;
+		const t = locale.t;
+		const toolbarView = new ToolbarView( locale, { ariaLabel: t( 'Widget\'s toolbar' ) } );
 
 		if ( this._toolbarDefinitions.has( toolbarId ) ) {
 			/**