DefaultFontLabel

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

When you tape a text without choosing a font the "Font" combo is left empty (you see a blank field). Changing the DeaultFontLabel gives you the possibility to change this behavior. Example:

FCKConfig.DefaultFontLabel = 'Normal Font' ;

You've chosen to label the "Font" combo 'Normal Font'. When you will type the text you will see that the font label is 'Normal Font'. If you choose a font e.g.'Arial' from the combo the label will change as well. If you try to go back to the text written without choosing the font you will see that it is labeled 'Normal Font'. So as you can see the "DefaultFontLabel" determines how the normally typed text will be labeled.

Note that the DefaultFontLabel setting will not define the font to be used by default, just the label to show in the toolbar combo. To set the default font, you must properly define the styles for the "body" element in the CSS file used in the editing area (see EditorAreaCSS).

This page was last edited on 20 May 2008, at 11:28.