54
Views
6
Comments
CKEditor Font-Family
Question

Hello, 

We were not able to find a solution nowhere in the forum, we want to add a font-family to CKEditor but when we add it to the plugin.js file it doesn't apply to CKEditor. What could we do to make it happen. Thanks in advance!

UserImage.jpg
Chris Skretis

Hello Ana, 

Yes i have found the posts you linked but i cant understand where the config file is so i can add the font-family.

Regards,

Chris

2023-01-26 16-03-24
Ana Agostinho

Hello again, 

You don't understand where the config file is? Can you clarify it? 
Are you having trouble finding font files to add, is that it?

You can download fonts from Google, for example. 

After that, you need to follow the comment provided by @Francisco Calderón on the post:

Best regards, 

Ana

UserImage.jpg
Chris Skretis

We have already added the fonts we want in our Theme Resources and stylesheet do we have to add them again at the CKEditor? Also we don't understand the part in the screenshot i have added here.

Regards, 

Chris

Screenshot 2023-04-28 131256.png
2023-01-26 16-03-24
Ana Agostinho


Yes, I believe you have to add it to the CKEditor. It is a component, and sometimes components do not subordinate to customer theme you have (depends on your implementation).

Basically that print is just for you to make sure you have everything with the right and same names you gave before, in order not to have mistakes. Don't forget to add the font name as an option for your Config string by adding it as part of your font_names string. Only if that conditions are satisfied, you will have the result you wish for. 

Best regards,

Ana

UserImage.jpg
Chris Skretis

We cant find the Config string and font_names string anywhere, could you please guide us?

Regards, 

Chris

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.