Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Fonts
#1
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.
Reply
#2
Hi. Did you read the wiki?
http://get-simple.info/wiki/how_to:editor_configuration

good luck
Reply
#3
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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
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
Reply




Users browsing this thread: 1 Guest(s)