Hi everyone
I'm using CKEditor 3.x and would like to know how I can change the defaut font and fontsize for the editor. I'd like to have it in Arial 12pt. Basically, I don't want the user to have any options, I would like to set a default via the config file.
Any ideas?
Thanks!
Jared
I'm using CKEditor 3.x and would like to know how I can change the defaut font and fontsize for the editor. I'd like to have it in Arial 12pt. Basically, I don't want the user to have any options, I would like to set a default via the config file.
Any ideas?
Thanks!
Jared

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.font_style
config.font_style =
{
element : 'span',
styles : { 'font-family' : '#(family)' },
overrides : [ { element : 'font', attributes : { 'face' : null } } ]
};
Thanks!
Any other ideas?
URL
viewtopic.php?f=11&t=16251
Anyone else have any ideas?
Thanks!
body { font-family: Arial; font-size: 12px; }But setting
In the config.js file did nothing. The font and size drop-downs do not have any values selected.
Any ideas, anyone?
Sounds like a bug to me. I would check if this issue hasn't been logged already and if not, log a point.
This sounds like what I need to simply change the font used in the editor to Arial by default. Where is this contents.css file?
It took me quite a while to figure this out.
Let us say you want to use Verdana as the default font. Here is what you can do:
1. Open contents.css and change the font tag:
font-family: Verdana;
2. In the application/page where the output will be published, add this style:
<style>
.entry-content {font-family: Tahoma;}
</style>
That's it! Now you have change the default font successfully. This works for the font size as well. I just finished developing this question2answer site, بنات بنات, which utilizes CKEditor and this tiny issue kept me awake for two days!
This is working great in IE but not in Firefox.
Can we set a pre-defined font and font size for Firefox browser?
Please advise.
Thanks, Kris
Yes but if your font family is a variable, how do you do ?
http://stackoverflow.com/questions/16339258/ckeditor-4-how-to-set-default-font