Author extensions

The CSS file used for rendering XHTML content is located in ${frameworks}/xhtml/css/xhtml.css.

Specific actions are:

  • Bold - changes the style of the selected text to bold by surrounding it with b tag.

  • Italic - changes the style of the selected text to italic by surrounding it with i tag.

  • Underline - changes the style of the selected text to underline by surrounding it with u tag.

    [Note]Note

    For all of the above actions if there is no selection then a new specific tag will be inserted. These actions are available in any document context.

  • Headings - groups actions for inserting h1, h2, h3, h4, h5, h6 elements.

  • Insert Paragraph - inserts a new paragraph depending on the current context. If current context is a paragraph context (one of the ancestors of the element at caret position is p) then a new paragraph will be inserted after the paragraph at caret. Otherwise a new paragraph is inserted at caret position.

  • Insert Graphic - inserts a graphic object at the caret position. This is done by inserting an img element regardless of the current context. The following graphical formats are supported: GIF, JPG, JPEG, BMP, PNG and SVG.

  • Insert Ordered List - inserts an ordered list (ol element) with one list item (li child element).

  • Insert Unordered List - inserts an unordered list (ul element) with one list item (li child element).

  • Insert Definition List - inserts a definition list (dl element) with one list item (a dt child element and a dd child element).

  • Insert List Item - inserts a new list item for in any of the above two list types.

  • Insert Table - opens a dialog that allows you to configure the table to be inserted.

    Figure 6.7. Insert Table Dialog

    Insert Table Dialog


    The dialog allows the user to configure the number of rows and columns of the table, if the header and footer will be generated and how the table will be framed.

  • Insert Row - inserts a new table row with empty cells. The action is available when the caret position is inside a table.

  • Insert Column - inserts a new table column with empty cells after the current column. The action is available when the caret position is inside a table.

  • Insert Cell - inserts a new empty cell depending on the current context. If the caret is positioned between two cells, a new one will be inserted at caret's position. If the caret is inside a cell, then the new one will be created after the current cell.

  • Delete Column - deletes the table column where the caret is located.

  • Delete Row - deletes the table row where the caret is located.

  • Join Row Cells - joins the content of the selected cells. The operation is available if the selected cells are from the same row and they have the same row span. The action is also available when the selection is missing, but the caret is positioned between two cells.

  • Join Cell Above - joins the content of cell from current caret position with that of the cell above it. Note that this action works only if both cells have the same column span.

  • Join Cell Below - joins the content of cell from current caret position with that of the cell below it. Note that this action works only if both cells have the same column span.

  • Split Cell To The Left - splits the cell from current caret position in two, inserting a new empty table cell to the left. Note that this action works only if the current cell spans over more than one column. The column span of the source cell will be decreased with one.

  • Split Cell To The Right - splits the cell from current caret position in two, inserting a new empty table cell to the right. Note that this action works only if the current cell spans over more than one column. The column span of the source cell will be decreased with one.

  • Split Cell Above - splits the cell from current caret position in two, inserting a new empty table cell above. Note that this action works only if the current cell spans over more than one row. The row span of the source cell will be decreased with one.

  • Split Cell Below - splits the cell from current caret position in two, inserting a new empty table cell below. Note that this action works only if the current cell spans over more than one row. The row span of the source cell will be decreased with one.

All actions described above are available in the contextual menu, main menu (XHTML submenu) and in the Author custom actions toolbar.

Templates

Default templates are available for XHTML. They are stored in ${frameworksDir}/xhtml/templates folder and they can be used for easily creating basic XHTML documents.

These templates are available when creating new documents from templates.

XHTML - 1.0 Strict

New Strict XHTML 1.0

XHTML - 1.0 Transitional

New Transitional XHTML 1.0

XHTML - 1.1 DTD Based

New DTD-based XHTML 1.1

XHTML - 1.1 DTD Based + MathML 2.0 + SVG 1.1

New XHTML 1.1 with MathML and SVG insertions.

XHTML - 1.1 Schema based

New XHTML 1.1 XML Schema based.