GetSimple Support Forum

Full Version: Custom Fonts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Hi. Did you read the wiki?
http://get-simple.info/wiki/how_to:editor_configuration

good luck
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
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! Smile