FCK-Editor add fonts and change font size

General questions about CMSimple
Post Reply
Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

FCK-Editor add fonts and change font size

Post by Nicky » Tue Feb 02, 2010 9:02 am

I found how to add some (websafe) fonts to the editor, and also I change font-size options from 'x-small', 'small' to 'px'. In the original settings, font sizes render different in IE and Firefox and we don't want that.

2 files to change (update to your needs):

fckeditor/fckconfig.js
and
fckeditor/custom_configurations/fckconfig_cmsimple.js

search for (identical for both files)
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;

and replace by
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;Georgia;Impact' ;
FCKConfig.FontSizes = '9px;11px;12px;14px;18px;24px;36px' ;

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: FCK-Editor add fonts and change font size

Post by Holger » Wed Feb 03, 2010 12:14 pm

Hi Nicky,
Nicky wrote:2 files to change (update to your needs):
It's enough to do all custom changes in the files located at the folder fckeditor/custom_configurations/

Holger

phg
Posts: 63
Joined: Tue Nov 24, 2009 5:58 pm
Location: Berlin
Contact:

Re: FCK-Editor add fonts and change font size

Post by phg » Thu Feb 04, 2010 9:53 am

Hi Nicky,

that is it where I am searching for. Many thanks.

A question to Holger and the Team: Can anyone explain to me, why in the Standard-Implementation of FCKEdit smaller;larger etc is used and not 8px, 12px etc.
I think, the users know the px from MS-Word. My user (and I) where confused by the names larger etc. Is there any reason for that?

phg

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: FCK-Editor add fonts and change font size

Post by Holger » Thu Feb 04, 2010 10:01 am

phg wrote:A question to Holger and the Team: Can anyone explain to me, why in the Standard-Implementation of FCKEdit smaller;larger etc is used and not 8px, 12px etc.
Hi Horst,

That's just the default setting, coming with the download of a clean FCKeditor from their website.
To be honest, I've never thought about changing it by default. For me it was clear how to do this...

Maybe it's a good idea to change it in a future download.
By this way we can add some settings with "em" too. So it should fit the needs of most of the users.

Holger

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: FCK-Editor add fonts and change font size

Post by Tata » Thu Feb 04, 2010 10:52 am

Holger wrote:Maybe it's a good idea to change it in a future download.
By this way we can add some settings with "em" too. So it should fit the needs of most of the users.
IMHO the "em" settings should become the standard also in stylesheet.css, even with some reccommendation to keep this standard in one's own templates. The values small, large etc. do not explain enough what the real sizes will be. The numeric values seem more explanatory to me.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: FCK-Editor add fonts and change font size

Post by cmb » Tue Aug 16, 2011 12:17 pm

Hello Julia,

<DEL>I'm not aware of the concept of different kinds of users (e.g. manager users) and a plugin manager in CMSimple. Are you asking about CMS Made Simple, or another CMS?</DEL>

<ADD>Argh -- fallen to a spammer :evil:</ADD>

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply