Text Styling

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.

(Subscript and Superscript link joined)
(Final proof-reading)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
+
{{#CUSTOMTITLE:Text Styling}}
Text formatting determines the way your text will look in the document. Advanced capabilities in editing text format is what distinguishes CKEditor from a standard website form text area or a basic editor. Font styling, changing the size of the text, its size and color, or applying a pre-defined set of consistent styles all happen within seconds, with one mouse click. Experiment with various CKEditor text formatting options to achieve a unique presentation of your documents.
+
Text styling determines the way your text will look in the document. Advanced capabilities in setting text format is what distinguishes CKEditor from a standard form textarea or a basic editor. Font styling, changing the size of the text and its color, or applying a pre-defined set of consistent styles, all take seconds and one mouse click.
  
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Font|Font]]
+
In CKEditor the text styling features are grouped together on the [[CKEditor_3.x/Users Guide/Interface/Toolbar|toolbar]]. Some are simple buttons that turn the style on and off when you click them.
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Size|Size]]
 
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Bold, Italic, Underline, and Strike-through|Bold, Italic, Underline, and Strike-through]]
 
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Text Color|Text Color]]
 
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Background Color|Background Color]]
 
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Subscript and Superscript|Subscript and Superscript]]
 
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Styles|Styles]]
 
* [[CKEditor_3.x/Users Guide/Common Tasks/Text Styling/Paragraph Format|Paragraph Format]]
 
  
 +
[[Image:CKEditor_textstyling_toolbar1.png|frame|center|Text styling buttons grouped on CKEditor toolbar.]]
  
  
 +
Other text styling options are available as a drop-down list. Upon clicking them the list opens, and you can select a styling option.
  
== Subscript ==
+
[[Image:CKEditor_textstyling_toolbar2.png|frame|center|Text styling drop-down lists on CKEditor toolbar.]]
Subscript is a character that is slightly smaller than the text that surrounds it and is set below the baseline. It is often used in mathematical expressions to denote a variable version or the denominator part of a fraction.
 
  
To use subscript in your document, press the [[Image:CKEditor_subscript.png|Subscript]] toolbar button. To remove the formatting, press the button again.
 
  
[[Image:CKEditor_subscript_example.png|frame|center|Subscript used in CKEditor]]
+
Try experimenting with various text styling options available in CKEditor to achieve a unique presentation of your documents. Among the styling features you will find:
 +
* [[CKEditor_3.x/Users Guide/Styling/Font|Font Name]] – typeface that will be applied to the document text.
 +
* [[CKEditor_3.x/Users Guide/Styling/Size|Font Size]] – determines how big or small the text will be.
 +
* [[CKEditor_3.x/Users Guide/Styling/Bold, Italic, Underline, and Strike-through|Bold, Italic, Underline, and Strike-through]] &ndash; add '''bold''', ''italic'', <ins>underline</ins> and <strike>strike-through</strike> formatting to a text fragment.
 +
* [[CKEditor_3.x/Users Guide/Styling/Text Color|Text Color]] &ndash; changes the color of the document text.
 +
* [[CKEditor_3.x/Users Guide/Styling/Background Color|Background Color]] &ndash; changes the color of the text background.
 +
* [[CKEditor_3.x/Users Guide/Styling/Subscript and Superscript|Subscript and Superscript]] &ndash; text with subscript and superscript formatting is smaller and placed below or above the baseline, respectively.
 +
* [[CKEditor_3.x/Users Guide/Styling/Styles|Formatting Styles]] &ndash; pre-defined sets of formatting features that can be applied to block and inline elements of the document.
 +
* [[CKEditor_3.x/Users Guide/Styling/Format|Paragraph Format]] &ndash; pre-defined sets of formatting features that can be applied to block-level elements only.
  
 
+
To read more about a particular CKEditor text styling option and see some usage examples, click the name of the feature in the list above.
== Superscript ==
 
Subscript is a character that is slightly smaller than the text that surrounds it and is set above the baseline. It is often used in mathematical expressions to denote power or the numerator part of a fraction. In normal text superscript often directs a user to a footnote; some special characters are often added as superscript by default.
 
 
 
 
 
To use superscript in your document, press the [[Image:CKEditor_superscript.png|Superscript]] toolbar button. To remove the formatting, press the button again.
 
 
 
[[Image:CKEditor_superscript_example.png|frame|center|Superscript used in CKEditor]]
 
 
 
 
 
== Styles ==
 
Styles are pre-defined combinations of various formatting options that make it easier to keep the presentation of the text uniform. What is more, since a style often contains a number of features at once, when you want to customize the way a text fragment looks, you do not need to change a font, its size, or text and background color separately.
 
 
 
To choose a style, select a text fragment and press the [[Image:CKEditor_styles.png|Styles]] toolbar button. The '''Styles''' drop-down list contains a number of pre-defined block and inline styles that you can use. To make the choice easier, the style names are displayed in a style that they represent, giving you a preview of what the text will look like.
 
 
 
[[Image:CKEditor_styles_menu.png|frame|center|Styles drop-down menu in CKEditor]]
 
 
 
 
 
A style can be applied to the whole document, a paragraph, or a text fragment of arbitrary length &mdash; even a single letter. Do note, however, that for esthetic reasons it is recommended not to combine too many different styles in one document and to keep the styling consistent.
 
 
 
[[Image:CKEditor_styles_example.png|frame|center|Styles used in CKEditor]]
 
 
 
 
 
== Paragraph Format ==
 
Paragraph formats are pre-defined block-level combinations of various formatting options that make it easier to keep the presentation of the text uniform. What is more, since a style often contains a number of features at once, when you want to customize the way a text fragment looks, you do not need to change a font, its size, or text and background color separately.
 
 
 
To choose a paragraph format, place the cursor inside the block-level element and press the [[Image:CKEditor_paragraphformat.png|Paragraph Format]] toolbar button. The '''Paragraph Format''' drop-down list contains a number of pre-defined block-level styles that you can use. To make the choice easier, the format names are displayed in a format that they represent, giving you a preview of what the text will look like.
 
 
 
[[Image:CKEditor_paragraphformat_menu.png|frame|center|Paragraph Format drop-down menu in CKEditor]]
 
 
 
 
 
Note, however, that a paragraph format can only be applied to a block-level element, like a paragraph or a <code>div</code> element. To change the appearance of a text fragment of arbitrary length, even a single letter, choose an inline style via the '''Styles''' feature of CKEditor. Do note, however, that for esthetic reasons it is recommended not to combine too many different styles and formats in one document and to keep the styling consistent.
 
 
 
[[Image:CKEditor_paragraphformat_example.png|frame|center|Paragraph Format used in CKEditor]]
 

Latest revision as of 11:34, 13 December 2010

Text styling determines the way your text will look in the document. Advanced capabilities in setting text format is what distinguishes CKEditor from a standard form textarea or a basic editor. Font styling, changing the size of the text and its color, or applying a pre-defined set of consistent styles, all take seconds and one mouse click.

In CKEditor the text styling features are grouped together on the toolbar. Some are simple buttons that turn the style on and off when you click them.

Text styling buttons grouped on CKEditor toolbar.


Other text styling options are available as a drop-down list. Upon clicking them the list opens, and you can select a styling option.

Text styling drop-down lists on CKEditor toolbar.


Try experimenting with various text styling options available in CKEditor to achieve a unique presentation of your documents. Among the styling features you will find:

  • Font Name – typeface that will be applied to the document text.
  • Font Size – determines how big or small the text will be.
  • Bold, Italic, Underline, and Strike-through – add bold, italic, underline and strike-through formatting to a text fragment.
  • Text Color – changes the color of the document text.
  • Background Color – changes the color of the text background.
  • Subscript and Superscript – text with subscript and superscript formatting is smaller and placed below or above the baseline, respectively.
  • Formatting Styles – pre-defined sets of formatting features that can be applied to block and inline elements of the document.
  • Paragraph Format – pre-defined sets of formatting features that can be applied to block-level elements only.

To read more about a particular CKEditor text styling option and see some usage examples, click the name of the feature in the list above.

This page was last edited on 13 December 2010, at 11:34.