Posts: 11
Threads: 3
Joined: Sep 2011
Hi all,
How do I add fonts to the ckeditor? I'm sure it's really simple, but I've tried a few things and nothing works...
Thanks to anyone who can help.
Posts: 14
Threads: 2
Joined: Sep 2011
Posts: 2,928
Threads: 195
Joined: Feb 2011
I use a separate configuration file for CKEditor and how to define that is documented in the wiki
I just tested and defined other fonts in that file:
Code:
CKEDITOR.editorConfig = function( config )
{
....
config.font_defaultLabel = 'Connie',
config.font_names = 'Arial/Arial, Helvetica, sans-serif;' + 'Times New Roman/Times New Roman, Times, serif;' + 'Verdana;' + 'Connie';
config.language = 'de',
config.contentsLanguage = 'de',
......
};
When testing, I got "Connie" as default fontlabel and Connie was added to the fonts
I will take that off after the test , there is no egomania-font with my name ;=)
And as always: there are some goodies to find in the CKEDITOR docs:
http://docs.cksource.com/ckeditor_api/sy...font_names
Posts: 11
Threads: 3
Joined: Sep 2011
I've finally fixed the problem...when declaring the font in the CSS, I was using the full url address for the font...shortening the url solved the problem. (Doh)
Thank you both for your help!