Jump to content

Recommended Posts

Posted

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 ?

 

Screenshot 2020-07-22 at 1.37.38 PM.jpg

Screenshot 2020-07-22 at 1.37.33 PM.jpg

Posted

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:

2020-07-23_092948.png.6f5717d791b35567b932f2a7c02487c5.png

https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-font_names
https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-fontSize_sizes

  • Like 4
Posted
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:

Thanks! Strange thing … I put it in the config before with no effect. Putting it in the options field worked.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...