瀏覽代碼

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