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.

Line 1: Line 1:
== DefaultFontLabel ==
+
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:  
 
 
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:
 
 
<pre>FCKConfig.DefaultFontLabel = 'Normal Font'&nbsp;;
 
<pre>FCKConfig.DefaultFontLabel = 'Normal Font'&nbsp;;
 
</pre>  
 
</pre>  
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.
+
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.  
 +
 
 +
<br>
 +
 
 +
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 [[FCKeditor 2.x/Developers Guide/Configuration/Configuration Options/EditorAreaCSS|EditorAreaCSS]]).<br>

Revision as of 11:28, 20 May 2008

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).