Kaynağa Gözat

Changed: Remove `dropdown.buttonView` bindings to `dropdown`.

Maciej Gołaszewski 7 yıl önce
ebeveyn
işleme
4509133a75

+ 1 - 1
packages/ckeditor5-font/src/fontfamily/fontfamilyui.js

@@ -37,7 +37,7 @@ export default class FontFamilyUI extends Plugin {
 			const dropdownView = createDropdown( locale );
 			addListToDropdown( dropdownView, _prepareListOptions( options, command ) );
 
-			dropdownView.set( {
+			dropdownView.buttonView.set( {
 				label: t( 'Font Family' ),
 				icon: fontFamilyIcon,
 				tooltip: true

+ 1 - 1
packages/ckeditor5-font/src/fontsize/fontsizeui.js

@@ -40,7 +40,7 @@ export default class FontSizeUI extends Plugin {
 			addListToDropdown( dropdownView, _prepareListOptions( options, command ) );
 
 			// Create dropdown model.
-			dropdownView.set( {
+			dropdownView.buttonView.set( {
 				label: t( 'Font Size' ),
 				icon: fontSizeIcon,
 				tooltip: true