8
0
Эх сурвалжийг харах

Log fontListModel#execute event in the console.

Aleksander Nowodzinski 9 жил өмнө
parent
commit
1f59d794c9

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

@@ -81,6 +81,11 @@ export function imitateFeatures( editor ) {
 		items: fontCollection
 	} );
 
+	fontListModel.on( 'execute', ( evtInfo, itemModel ) => {
+		/* global console */
+		console.log( 'List item executed', itemModel );
+	} );
+
 	/* istanbul ignore next */
 	const fontModel = new Model( {
 		label: t( 'Font' ),