TEI P5 Author Mode Actions
A variety of actions are available for TEI P5 documents that can be found in TEI P5 menu, toolbar, contextual menu, and the Content Completion Assistant.
TEI P5 Toolbar Actions
The following default actions are available on the TEI P5 toolbar when editing in Author mode (by default, they are also available in the TEI P5 menu and some of them are in various submenus of the contextual menu):
- Bold
- Changes the style of the selected text to bold by surrounding it
with the
<hi>
tag and setting the@rend
attribute to bold. You can use this action on multiple non-contiguous selections. - Italic
- Changes the style of the selected text to italic by surrounding it
with the
<hi>
tag and setting the@rend
attribute to italic. You can use this action on multiple non-contiguous selections. - Underline
- Changes the style of the selected text to underline by surrounding
it with the
<hi>
tag and setting the@rend
attribute to ul. You can use this action on multiple non-contiguous selections. - Insert Section
- Inserts a new section or subsection, depending on the current context. For example,
if the current context is
div1
, then adiv2
is inserted. By default, this action also inserts a paragraph element as a child node. - Insert Paragraph
- Insert a new paragraph element at current cursor position.
- Insert Image
- Inserts an image reference at the cursor position. Depending on the current location, an image-type element is inserted.
- Insert List Item
- Inserts a list item in the current list type.
- Insert Ordered List
- Inserts an ordered list at the cursor position. A child list item is also automatically inserted by default. You can also use this action to convert selected paragraphs or other types of lists to an ordered list.
- Insert Itemized List
- Inserts an itemized list at the cursor position. A child list item is also automatically inserted by default. You can also use this action to convert selected paragraphs or other types of lists to an itemized list.
- Sort
- Sorts cells or list items in a table.
- Insert Table
- Opens a dialog box that allows you to configure and insert a table. You can generate a
header and footer, set the number of rows and columns of the table and decide how the
table is framed. You can also use this action to convert selected paragraphs, lists, and
inline content (mixed content, text plus markup, that is rendered inside a block element) into a table,
with the selected content inserted in the first column, starting from the first row
after the header (if a header is inserted).Note: If the selection contains a mixture of elements that cannot be converted, you will receive an error message saying that Only lists, paragraphs, or inline content can be converted to tables.
- Insert Row
- Inserts a new table row with empty cells below the current row. This action is available when the cursor is positioned inside a table.
- Insert Column
- Inserts a new table column with empty cells after the current column. This action is available when the cursor is positioned inside a table.
- Insert Cell
- Inserts a new empty cell depending on the current context. If the cursor is positioned between two cells, Oxygen XML Editor Eclipse plugin a new cell at the cursor position. If the cursor is inside a cell, the new cell is created after the current cell.
- Delete Column(s)
- Deletes the table column located at the cursor position or multiple columns in a selection.
- Delete Row(s)
- Deletes the table row located at the cursor position or multiple rows in a selection.
- Join Cells
- Joins the content of the selected cells (both horizontally and vertically).
- Split Cell
- Splits the cell at the cursor location. If Oxygen XML Editor Eclipse plugin detects more than one option to split the cell, a dialog box will be displayed that allows you to select the number of rows or columns to split the cell into.
TEI P5 Drag/Drop Actions
Dragging a file from the Project Explorer view and
dropping it into a TEI P5 document that is edited in Author mode,
creates a link to the dragged file (the <ptr>
element with the
@target
attribute) at the drop location. Dragging an image file from the
default file system application (Windows Explorer on Windows or Finder on macOS, for
example) and dropping it into a TEI P5 document inserts a graphic element (the
<graphic>
element with the @url
attribute) at the
drop location, similar to the Insert Image toolbar action.