sww Posted July 22, 2020 Posted July 22, 2020 Hey, I just can't figure out how to change the values in the dropdowns from the toolbar. I tried a few things in the config.js even in the plugin's core files (which isn't a good idea in the first place … i know). Is it such an unusual thing to do? Can't be the only one who wants Comic Sans out of the list ?
Robin S Posted July 22, 2020 Posted July 22, 2020 Personally I think it's best not to let editors choose font family or font size at all, lest your website ends up looking like a dog's breakfast. But to answer your question, you can use the Custom Config Options in the field settings: https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-font_nameshttps://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-fontSize_sizes 4
sww Posted July 23, 2020 Author Posted July 23, 2020 7 hours ago, Robin S said: Personally I think it's best not to let editors choose font family or font size at all, lest your website ends up looking like a dog's breakfast. Yep, in general I would agree with you. But in this case it's a special situation. The editor needs to switch between a few options to be able to follow the concept. 7 hours ago, Robin S said: But to answer your question, you can use the Custom Config Options in the field settings: https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-font_nameshttps://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-fontSize_sizes Thanks! Strange thing … I put it in the config before with no effect. Putting it in the options field worked.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now