Преглед изворни кода

Log fontListModel#execute event in the console.

Aleksander Nowodzinski пре 9 година
родитељ
комит
1f59d794c9
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      packages/ckeditor5-editor-classic/src/utils/imitatefeatures.js

+ 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' ),