Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKEditor 4 - how to add font family and font size controls to the toolbar

Tags:

ckeditor

I have a config.toolbarGroups setting in config.js but I don't know what name to use for the groups to add font family/font size controls. (It seems the documentation is lacking in this regard). I've found some suggestion that I should use CKBuilder to create a package that already includes it, but I can't redeploy the entire ckeditor just to add a couple of buttons.

Edit: My CKEditor is version 4

Any advise?

Thanks!

like image 263
Roy Tang Avatar asked Apr 24 '13 05:04

Roy Tang


2 Answers

config.extraPlugins = 'font';

You have to add the plugin...

like image 104
Harold Avatar answered Oct 27 '22 03:10

Harold


Took me a long time to figure out that I explicitly had to add FontSize to the toolbar, too - doesn't seem to work with Font only.

like image 42
m02ph3u5 Avatar answered Oct 27 '22 01:10

m02ph3u5