Hi!
In fckconfig.js I can modify the sizes of fonts att this line:
FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
but how do I do if I would like to use pixles instead?
For example:
FCKConfig.FontSizes = '10px/xx-small;11px/x-small;12px/small;13px/medium;14px/large;15px/x-large;16px/xx-large' ;
I know that I cant do like that (ive tried) but can any one tell me how I can solve this problem?
Regards
Millvi
In fckconfig.js I can modify the sizes of fonts att this line:
FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
but how do I do if I would like to use pixles instead?
For example:
FCKConfig.FontSizes = '10px/xx-small;11px/x-small;12px/small;13px/medium;14px/large;15px/x-large;16px/xx-large' ;
I know that I cant do like that (ive tried) but can any one tell me how I can solve this problem?
Regards
Millvi
RE: Font size
You cannot do that.

The font-size dropdown refers to the size attribute of a font tag. This is not specified in pixels, but an arbitrary scale.
None of my users have ever seen the font or font-size dropdowns ... and they never will. I disable them straight away as they encourage bad HTML (font tags were deprecated long ago).
A better solution is to create styles that reflect the appropriate combinations of font and size that have been designed for the site. After all, do your users REALLY need to display something in xx-large comic-sans?
See the documentation for info on modifying the fckstyles.xml file to give your users styles to select from.
An even better solution is to only allow users to format using font formats such as P, H1, H2, H3, H4 etc. You can then apply appropriate CSS to those elements.
Of course I'm talking about best practice content production for public web sites here ... if this is for internal use or something adhoc like a forum you might not care much about this stuff. If that's the case, let the comic-sans run free!!
RE: Font size
I will follow you on this:
"None of my users have ever seen the font or font-size dropdowns ... and they never will."