Sfoglia il codice sorgente

Updated features mock so it uses iconAlign attribute in Button model.

Aleksander Nowodzinski 9 anni fa
parent
commit
5fd11f9614

+ 5 - 2
packages/ckeditor5-editor-classic/src/utils/imitatefeatures.js

@@ -26,7 +26,8 @@ export function imitateFeatures( editor ) {
 		isEnabled: true,
 		isOn: false,
 		label: t( 'Bold' ),
-		icon: 'bold'
+		icon: 'bold',
+		iconAlign: 'left'
 	} );
 
 	// Note – most of the contents of this file is ignored, as it's a temporary file that will
@@ -49,7 +50,8 @@ export function imitateFeatures( editor ) {
 		isEnabled: true,
 		isOn: false,
 		label: t( 'Italic' ),
-		icon: 'italic'
+		icon: 'italic',
+		iconAlign: 'left'
 	} );
 
 	/* istanbul ignore next */
@@ -97,6 +99,7 @@ export function imitateFeatures( editor ) {
 	editor.ui.featureComponents.add( 'font', ListDropdown, ListDropdownView, fontModel );
 
 	window.fontCollection = fontCollection;
+	window.fontModel = fontModel;
 	window.Model = Model;
 }