|
|
(38 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | Text formatting determines how your text will look in your document. Making your text look better is very easy using the CKEditor. We will start the guide through the text formatting with bold, italic, underlined fonts.<br> | + | {{#CUSTOMTITLE:Text Styling}} |
| + | 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. |
| | | |
− | == Bold, Italic, Underlined and Strike-through<br> ==
| + | 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. |
| | | |
− | You may also arrange the way you font looks like by choosing whether the font should be bold, italic, underlined or stroked through.
| + | [[Image:CKEditor_textstyling_toolbar1.png|frame|center|Text styling buttons grouped on CKEditor toolbar.]] |
| | | |
− | * To make your font bold press the[[Image:CKEditor_bold.png]] on the toolbar.
| |
− | * If you want make italic your text press the[[Image:CKEditor_italic.png]]on the toolbar .<br>
| |
− | * For underlined press the[[Image:CKEditor_underline.png]] on the toolbar.<br>
| |
− | * And finally to strike a line through the text press [[Image:CKEditor_strikethough.png|Strike-through]] on the toolbar.<br>
| |
| | | |
− | Example:
| + | Other text styling options are available as a drop-down list. Upon clicking them the list opens, and you can select a styling option. |
| | | |
− | [[Image:CKEditor_example_formatting.png]] | + | [[Image:CKEditor_textstyling_toolbar2.png|frame|center|Text styling drop-down lists on CKEditor toolbar.]] |
| | | |
− | If you choose any of this options you will learn that the button on the toolbar will highlight. If you want to disable the function press the button responsible for that option again. Of course you can mix these options as much as you want.<br>
| |
| | | |
− | Example:
| + | 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]] – 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]] – changes the color of the document text. |
| + | * [[CKEditor_3.x/Users Guide/Styling/Background Color|Background Color]] – changes the color of the text background. |
| + | * [[CKEditor_3.x/Users Guide/Styling/Subscript and Superscript|Subscript and Superscript]] – 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]] – 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]] – pre-defined sets of formatting features that can be applied to block-level elements only. |
| | | |
− | [[Image:CKEditor_example_mixed.png]] <br>
| + | 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. |
− | | |
− | Notice that if you don't switch the underline option off the underline will go between your blanks.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:CKEditor_underliendfont.png]]<br>
| |
− | | |
− | The same thing happens when you use the strike through function.<br>
| |
− | | |
− | == Styles ==
| |
− | | |
− | It is quite easy to make your text looking ugly or difficult to read by making lots of different formatting on it. Styles help on making all formatting uniform in the text. Each style option contains a predefined combination of formatting features, which have been defined by the web site developer. Be sure you have been instructed on how to properly use each of the available styles.
| |
− | | |
− | Styles are also a way to combine all the formatting function described in this page. They give you fast access to the common used text formats. For example: you don't have to change the font, its color, its background, its size. You simply peak a style you prefer from the Style menu and start typing.
| |
− | | |
− | [[Image:CKEditor_style.png]]<br>
| |
− | | |
− | It is the best way to change the text look.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:CKEditor_example_style.png]]<br>
| |
− | | |
− | == Text Alignment ==
| |
− | | |
− | A paragraph of text can have its lines aligned to either of the sides of the document, as well as centering on it. You may also force the lines to take the entire space available in the document (like aligning to both sides at the same time).
| |
− | | |
− | To align your text at the left side of the editing area, press the [[Image:CKEditor_align_left.png]] button on the toolbar.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:AlignmentL example.png|Image:AlignmentL_example.png]]
| |
− | | |
− | If you want instead to have the text aligned at the right side of the editing area, just press the [[Image:Justifyright.gif]]button on the toolbar.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:AlignmentR example.png|Image:AlignmentR_example.png]]
| |
− | | |
− | <span dir="rtl"></span><del></del><del></del><del></del><span style="background-color: Yellow;"><code></code></span><span style="color: rgb(255, 255, 0);"><span style="color: rgb(255, 0, 0);"></span></span><span style="font-size: xx-large;"><span style="font-size: xx-small;"><span style="font-size: medium;"></span></span></span>In order to align your text at the center of the document, press the [[Image:Justifycenter.gif]]on your toolbar.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:AlignmentC example.png|Image:AlignmentC_example.png]]
| |
− | | |
− | The last option is the block alignment. If you want to activate it press [[Image:Justifyfull.gif]] on the toolbar. This function is much similar to the left alignment. You also begin typing from the left side of the screen. The difference instead can be noted when writing several lines of text. Each one will have the same length even though they don't have to have the same amount of words or letters. The lines will just expand and the text will be equally long so that the lines will end in the same place.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:AlignmentB example.png|Image:AlignmentB_example.png]]
| |
− | | |
− | == Paragraph (Block) Format ==
| |
− | | |
− | Another very important function which you will probably use in your text is the Format menu in the toolbar:<br>
| |
− | | |
− | [[Image:Formatmenu.png]]
| |
− | | |
− | A format is used for organizing your text and to distinguish different parts of your text. For example if you want to start a new chapter or to put different categories and subcategories you use the format menu and choose different headings.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:Format example.png|Image:Format_example.png]]
| |
− | | |
− | <span style="font-size: small;">You can see headings also in this guide. Fonts, Layout and format, Styles are all headings used to divide this document into categories.</span>
| |
− | | |
− | == Fonts ==
| |
− | | |
− | Fonts are kinds of style of writing. They determine how the letters of your text look like. The most common used fonts are "Times New Roman" and "Arial". They are used in most documents created in the world. You may say that they are very official fonts used in formal documents. If you wish to use a different font you are of course more than welcome to do so. To choose a font you want to type in access the font menu in your toolbar and click on the font you decided to use.
| |
− | | |
− | [[Image:Fontmenu.png|The Font menu in FCKeditor]]<br>
| |
− | | |
− | <span style="font-family: Comic Sans MS;"><span style="font-family: Arial;"></span></span>
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:Fonts example.png|Image:Fonts_example.png]]
| |
− | | |
− | <span style="font-family: Tahoma;"><span style="font-family: Comic Sans MS;"><span style="font-family: Arial;"><span style="font-family: Times New Roman;"></span></span></span></span>
| |
− | | |
− | We encourage you to avoid overusing this feature. You can easaly produce a document that looks bad or difficult to read. Give preference to the [[#Styles|Styles]] menu instead, which have been preciselly designed by your web side developer.<br>
| |
− | | |
− | == Text Size ==
| |
− | | |
− | To change you font size open the "Size" menu in the toolbar. There you will find a range of sizes which were defined by your web site developer. To change the size of your font just choose one of the options.
| |
− | | |
− | [[Image:Sizemenu.png]]<br>
| |
− | | |
− | Example:<br>
| |
− | | |
− | [[Image:Size example.png|Image:Size_example.png]]<br>
| |
− | | |
− | As you can see you can have a very big variety of sizes.
| |
− | | |
− | == Colors ==
| |
− | | |
− | The other option to make your text look different is changing the text color or its background color.<br>
| |
− | | |
− | If you want to change your text color press the text color button [[Image:Textcolor.gif]]. Several colors will appear in a menu. If you are not satisfied with the colors available in that panel click "'''More colors...'''".<br>
| |
− | | |
− | To choose the color you want to use, just click on it.
| |
− | | |
− | [[Image:Colormenu.png]]<br>
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:Color example.png|Image:Color_example.png]]
| |
− | | |
− | You may also change the text background color using the [[Image:Bgcolor.gif]] button. Again you will find a range of colors the same ones as in the text color. Click on the color you want to choose.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:Bgcolor example.png|Image:Bgcolor_example.png]]
| |
− | | |
− | You may also mix the colors of your text and the background.<br>
| |
− | | |
− | == Subscript and Superscript ==
| |
− | | |
− | Subscript and superscript are usually used for mathematical needs. Subscript is a way to put an index to a letter or to a number. The subscript has a smaller font than the normal text. To activate subscript you must press the [[Image:Subscript.gif]] button on the toolbar.
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:Subscript example.png]]
| |
− | | |
− | As you can see you can use either a number in a subscript or a text.
| |
− | | |
− | The superscript work in the same way as the subscript but instead of placing the index in the bottom you place it in the top. This function is usually used in mathematical equations to write the "to the power of" function. You can access it from the toolbar using the [[Image:Superscript.gif]] button
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:Superscript example.png|Image:Superscript_example.png]]
| |
− | | |
− | You can also mix these two functions:
| |
− | | |
− | Example:
| |
− | | |
− | [[Image:SubscriptMix example.png|Image:SubscriptMix_example.png]]
| |
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.
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.