Share » Learn » eZ Publish » Formatting Text with the eZ Publish...

Formatting Text with the eZ Publish Online Editor

Friday 22 June 2007 6:00:00 am

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Headers

The Text Style tool is a dropdown list on the OE toolbar that is used to create headings. The list of choices contains different text styles. While "Normal" means normal text, the other six styles are headings ranging from levels 1 to 6. Headings are incompatible with all other XML tags. This means that a heading cannot contain a link, nor can it be bold, italic and so on. In fact, the only things that headings can contain, other than normal text, are special characters. However, developers can apply additional styling for headers through the template system.

Heading level 1

There are two ways to create a new heading. Either type in text normally, then select it and click the Text Style tool dropdown list to select the heading level of your choice. Alternatively, start with a new paragraph at the location where you wish to add the heading, open the dropdown list of text styles and choose the desired heading level, type in text, then press the "Enter" key to terminate the heading. Later, you can change the heading level by selecting the text and accessing the Text Style tool dropdown list.

Paragraphs and line breaks

In the OE text area, to create a new paragraph, position the cursor at a location where you wish to add a new text paragraph and press the "Enter" key. A new empty paragraph will be created. To create a new line, hold the "Shift" key down and press the "Enter" key. A new empty line will be created, leaving a hard line break in the text.

The Format area of the OE toolbar contains the Bold button to make the selected text bold, and the Italic button to make the selected text italic. If the selected text is already bold or italic, the corresponding button will remove the formatting.

It is possible to set the text style (bold / italic) before typing in the actual text. When your cursor is on a blank space or line, click the corresponding button to initiate the bold or italic text style, type some words, then click the button again to turn off the text style.

36 542 Users on board!

Tutorial menu

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)