Lists"

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.

m (Typo corrected)
(Nesting bulleted list section added)
Line 29: Line 29:
 
* '''Disc''' – the list marker becomes a round shape filled in the middle.
 
* '''Disc''' – the list marker becomes a round shape filled in the middle.
 
* '''Square''' – the list marker becomes a  four-sided shape filled in the middle.
 
* '''Square''' – the list marker becomes a  four-sided shape filled in the middle.
 +
 +
=== Nesting Bulleted Lists ===
 +
Sometimes one list level is not enough to represent a more complicated structure of items. This is why CKEditor lets you add multiple levels of nesting to your lists.
 +
 +
To create a nested list, use the '''Increase Indent''' feature of CKEditor. Place the cursor in the line that should start the nested list and press the [[Image:CKEditor_indent.png|alt=Increase Indent]] button on the toolbar. The list item will become indented and the list marker will change. The next item added to the list will have the same indent as the previous one and thus become a part of the nested list.
 +
 +
[[Image:CKEditor_bulletedlist_nested_example.png|frame|center|alt=Nested bulleted lists added in CKEditor|Nested bulleted lists added in CKEditor]]
 +
 +
 +
If you want to end the nested list and return to the previous indent level, use the '''Decrease Indent''' feature of CKEditor. Place the cursor in the line that should start the nested list and press the [[Image:CKEditor_outdent.png|alt=Decrease Indent]] button on the toolbar. The indentation of the list item will decrease and the list marker will change back to the marker for a list of a higher level.
  
  

Revision as of 08:52, 3 November 2010

Lists provide a way to structure text in a clear manner as well as group items that belong together. CKEditor lets you create two sorts of lists: bulleted (unordered) and numbered (ordered) lists.

Bulleted Lists

Bulleted lists are useful when you want to group a number of items that do not need to appear in any particular order.

Creating a Bulleted List

To create a bulleted list, press the Insert/Remove Bulleted List button on the toolbar. A default list marker will appear at the beginning of the line of text that contains the cursor and the line will become indented. If you want to add further list items, press Enter on your keyboard. The cursor will move to the next line with a list marker placed at its beginning.

A bulleted list with default list markers inserted by CKEditor
A bulleted list with default list markers inserted by CKEditor


The list is continued automatically when you press Enter at the end of a line. If you want to suppress list creation, press Enter in an empty line with a list marker or click the Insert/Remove Bulleted List button again. The cursor will then move to the next, unindented paragraph.

Another method of adding a bulleted list is to select one or more paragraphs and press the Insert/Remove Bulleted List button on the toolbar. Each paragraph will then become a separate list item.

Bulleted List Properties

In CKEditor you can customize the appearance of the bulleted list and modify the list marker. In order to change the list style, open the list context menu by clicking the right mouse button on a list item, and choose the Bulleted List Properties menu option.

The bulleted list context menu with the Bulleted List Properties option
The bulleted list context menu with the Bulleted List Properties option


The Bulleted List Properties dialog window lets you configure the appearance of the list marker.

The Bulleted List Properties dialog window in CKEditor
The Bulleted List Properties dialog window in CKEditor


The Type drop-down list contains the following options:

  • Circle – the list marker becomes a round shape that is empty in the middle.
  • Disc – the list marker becomes a round shape filled in the middle.
  • Square – the list marker becomes a four-sided shape filled in the middle.

Nesting Bulleted Lists

Sometimes one list level is not enough to represent a more complicated structure of items. This is why CKEditor lets you add multiple levels of nesting to your lists.

To create a nested list, use the Increase Indent feature of CKEditor. Place the cursor in the line that should start the nested list and press the Increase Indent button on the toolbar. The list item will become indented and the list marker will change. The next item added to the list will have the same indent as the previous one and thus become a part of the nested list.

Nested bulleted lists added in CKEditor
Nested bulleted lists added in CKEditor


If you want to end the nested list and return to the previous indent level, use the Decrease Indent feature of CKEditor. Place the cursor in the line that should start the nested list and press the Decrease Indent button on the toolbar. The indentation of the list item will decrease and the list marker will change back to the marker for a list of a higher level.


Removing a Bulleted List

If you want to remove list formatting, leaving the text of the list items intact, select the list in the document and click the Insert/Remove Bulleted List button on the toolbar. The list markers and indentation will be removed and each of the former list items will become a paragraph.

Bulleted list formatting removed from the document in CKEditor
Bulleted list formatting removed from the document in CKEditor


Numbered Lists

Numbered lists are useful when you want to group a number of items that need appear in a particular order. They are perfectly suited for lists of procedures or step-by-step instructions.

Creating a Numbered List

To create a numbered list, press the Insert/Remove Numbered List button on the toolbar. A default numbered list marker will appear at the beginning of the line of text that contains the cursor and the line will become indented. If you want to add further list items, press Enter on your keyboard. The cursor will move to the next line with a list marker placed at its beginning.

A numbered list with default list markers inserted by CKEditor
A numbered list with default list markers inserted by CKEditor


The list is continued automatically when you press Enter at the end of a line. If you want to suppress list creation, press Enter in an empty line with a list marker or click the Insert/Remove Numbered List button again. The cursor will then move to the next, unindented paragraph.

Another method of adding a numbered list is to select one or more paragraphs and press the Insert/Remove Numbered List button on the toolbar. Each paragraph will then become a separate list item.

Numbered List Properties

In CKEditor you can customize the appearance of the numbered list, its starting value and the list marker. In order to change the list style, open the list context menu by clicking the right mouse button on a list item, and choose the Numbered List Properties menu option.

The numbered list context menu with the Numbered List Properties option
The numbered list context menu with the Numbered List Properties option


The Numbered List Properties dialog window lets you configure the starting value and the list marker type. A numbered list can use decimal numbers, Roman numerals or letters of the alphabet, in either lower or upper case.

The Numbered List Properties dialog window in CKEditor
The Numbered List Properties dialog window in CKEditor

Below is an overview of all Numbered List Properties dialog window elements:

  • Start – the starting value for the list that will be used in the first list item.
  • Type – the type of the list marker. The following options are available from the drop-down list:
    • Lower Roman (i, ii, iii, iv, v, etc.)
    • Upper Roman (I, II, III, IV, V, etc.)
    • Lower Alpha (a, b, c, d, e, etc.)
    • Upper Alpha (A, B, C, D, E, etc.)
    • Decimal (1, 2, 3, 4, 5, etc.)


Removing a Numbered List

If you want to remove list formatting, leaving the text of the list items intact, select the list in the document and click the Insert/Remove Numbered List button on the toolbar. The list markers and indentation will be removed and each list item will become a separate paragraph.

Numbered list formatting removed from the document in CKEditor
Numbered list formatting removed from the document in CKEditor