{"action":"created","issue":{"url":"https://api.github.com/repos/ckeditor/ckeditor5-font/issues/23","repository_url":"https://api.github.com/repos/ckeditor/ckeditor5-font","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5-font/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-font/issues/23/comments","events_url":"https://api.github.com/repos/ckeditor/ckeditor5-font/issues/23/events","html_url":"https://github.com/ckeditor/ckeditor5-font/issues/23","id":385621938,"node_id":"MDU6SXNzdWUzODU2MjE5Mzg=","number":23,"title":"Hi! Could Font Size Icon change to the real value?","user":{"login":"wuguokai","id":30334643,"node_id":"MDQ6VXNlcjMwMzM0NjQz","avatar_url":"https://avatars0.githubusercontent.com/u/30334643?v=4","gravatar_id":"","url":"https://api.github.com/users/wuguokai","html_url":"https://github.com/wuguokai","followers_url":"https://api.github.com/users/wuguokai/followers","following_url":"https://api.github.com/users/wuguokai/following{/other_user}","gists_url":"https://api.github.com/users/wuguokai/gists{/gist_id}","starred_url":"https://api.github.com/users/wuguokai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuguokai/subscriptions","organizations_url":"https://api.github.com/users/wuguokai/orgs","repos_url":"https://api.github.com/users/wuguokai/repos","events_url":"https://api.github.com/users/wuguokai/events{/privacy}","received_events_url":"https://api.github.com/users/wuguokai/received_events","type":"User","site_admin":false},"labels":[{"id":781954485,"node_id":"MDU6TGFiZWw3ODE5NTQ0ODU=","url":"https://api.github.com/repos/ckeditor/ckeditor5-font/labels/resolution:duplicate","name":"resolution:duplicate","color":"444444","default":false},{"id":781954538,"node_id":"MDU6TGFiZWw3ODE5NTQ1Mzg=","url":"https://api.github.com/repos/ckeditor/ckeditor5-font/labels/type:question","name":"type:question","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":{"login":"jodator","id":247363,"node_id":"MDQ6VXNlcjI0NzM2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/247363?v=4","gravatar_id":"","url":"https://api.github.com/users/jodator","html_url":"https://github.com/jodator","followers_url":"https://api.github.com/users/jodator/followers","following_url":"https://api.github.com/users/jodator/following{/other_user}","gists_url":"https://api.github.com/users/jodator/gists{/gist_id}","starred_url":"https://api.github.com/users/jodator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodator/subscriptions","organizations_url":"https://api.github.com/users/jodator/orgs","repos_url":"https://api.github.com/users/jodator/repos","events_url":"https://api.github.com/users/jodator/events{/privacy}","received_events_url":"https://api.github.com/users/jodator/received_events","type":"User","site_admin":false},"assignees":[{"login":"jodator","id":247363,"node_id":"MDQ6VXNlcjI0NzM2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/247363?v=4","gravatar_id":"","url":"https://api.github.com/users/jodator","html_url":"https://github.com/jodator","followers_url":"https://api.github.com/users/jodator/followers","following_url":"https://api.github.com/users/jodator/following{/other_user}","gists_url":"https://api.github.com/users/jodator/gists{/gist_id}","starred_url":"https://api.github.com/users/jodator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodator/subscriptions","organizations_url":"https://api.github.com/users/jodator/orgs","repos_url":"https://api.github.com/users/jodator/repos","events_url":"https://api.github.com/users/jodator/events{/privacy}","received_events_url":"https://api.github.com/users/jodator/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-29T08:30:48Z","updated_at":"2018-11-29T09:05:56Z","closed_at":"2018-11-29T09:05:56Z","author_association":"NONE","body":"Now Font Size Icon is a svg \r\n![image](https://user-images.githubusercontent.com/30334643/49208771-9e1b6c80-f3f3-11e8-8042-34fe81019108.png)\r\nI want to change it to the real value.like this:\r\n![image](https://user-images.githubusercontent.com/30334643/49208827-cb681a80-f3f3-11e8-9f6a-3aa145bdf326.png)\r\nHow should I do it?\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/ckeditor/ckeditor5-font/issues/comments/442758109","html_url":"https://github.com/ckeditor/ckeditor5-font/issues/23#issuecomment-442758109","issue_url":"https://api.github.com/repos/ckeditor/ckeditor5-font/issues/23","id":442758109,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjc1ODEwOQ==","user":{"login":"jodator","id":247363,"node_id":"MDQ6VXNlcjI0NzM2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/247363?v=4","gravatar_id":"","url":"https://api.github.com/users/jodator","html_url":"https://github.com/jodator","followers_url":"https://api.github.com/users/jodator/followers","following_url":"https://api.github.com/users/jodator/following{/other_user}","gists_url":"https://api.github.com/users/jodator/gists{/gist_id}","starred_url":"https://api.github.com/users/jodator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodator/subscriptions","organizations_url":"https://api.github.com/users/jodator/orgs","repos_url":"https://api.github.com/users/jodator/repos","events_url":"https://api.github.com/users/jodator/events{/privacy}","received_events_url":"https://api.github.com/users/jodator/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T09:05:56Z","updated_at":"2018-11-29T09:05:56Z","author_association":"CONTRIBUTOR","body":"You need to create a [custom CKEditor 5 build](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/development/custom-builds.html) with a plugin which will create custom component.\r\n\r\nTaken from [similar feature request](https://github.com/ckeditor/ckeditor5-font/issues/18):\r\n\r\n```js\r\nexport class MyCustomFontSizeUI extends Plugin {\r\n\tinit() {\r\n\t\tthis.editor.ui.componentFactory.add( 'fontSizeDropdown', () => {\r\n\t\t\tconst editor = this.editor;\r\n\r\n\t\t\tconst command = editor.commands.get( 'fontSize' );\r\n\r\n\t\t\t// Use original fontSize button - we only changes its behavior.\r\n\t\t\tconst dropdownView = editor.ui.componentFactory.create( 'fontSize' );\r\n\r\n\t\t\t// Show label on dropdown's button.\r\n\t\t\tdropdownView.buttonView.set( 'withText', true );\r\n\r\n\t\t\t// Disable icon on the button.\r\n\t\t\tdropdownView.buttonView.set( 'icon', false );\r\n\r\n\t\t\t// To hide the icon uncomment below.\r\n\t\t\t// dropdownView.buttonView.set( 'icon', false );\r\n\r\n\t\t\t// Bind dropdown's button label to fontSize value.\r\n\t\t\tdropdownView.buttonView.bind( 'label' ).to( command, 'value', value => {\r\n\t\t\t\t// If no value is set on the command show 'Default' text.\r\n\t\t\t\t// Use t() method to make that string translatable.\r\n\t\t\t\treturn value ? value : '16'; // The Default size is '16'\r\n\t\t\t} );\r\n\r\n\t\t\treturn dropdownView;\r\n\t\t} );\r\n\t}\r\n}\r\n```\r\n\r\nIn action:\r\n![peek 2018-11-29 10-01](https://user-images.githubusercontent.com/247363/49210591-c4261a00-f3bd-11e8-8fb7-32c508d5ea1a.gif)\r\n\r\nps.: I'm closing this as a dup of #18.\r\n"}}
{"actor":{"display_login":"jodator"}}