Skip to main content

Remove Elements

As Paligo uses structured content, you have more control over deleting your content. With a single action, you can delete entire structures, individual elements, or only the content inside an element. This is one of the benefits of structured content. Depending on what you want to achieve, you can:

Tip

If you are unfamiliar with the concept of "parent" and "child" elements, see Understanding Content Structures.

  • Delete text and leave the structural elements in place

  • Remove an element but leave its content in place (this only applies to inline elements, such as emphasis and guilabel).

  • Delete an element to remove the content of the element. When you delete an element, Paligo will remove:

    • The selected element

    • Any text or other content inside the element

    • Any "child" elements inside the element

    • Any text or other content inside the "child" elements.

    XML tree view of an ordered list. At the top level it has ordered list, mediaobject, and then another ordered list. The mediaobject is incorrectly at the top level. It should be inside the third list item in the first orderedlist.

    You can view the structure by looking at the XML Tree View.

    mediaobject-in-element-structure-menu.jpg

    The structure from the top-level section to the currently selected element is also shown in the Element Structure Menu.

Note

As Paligo uses structured content, you cannot just highlight multiple sections of a page and press delete. That's not how structured content works. Your content elements are in a hierarchy and so need to be deleted as structures, either as individual elements or as "parent" plus "child" elements.

Tip

If you want to delete an inline element, such as emphasis, rather than an entire block of text, see Delete Inline Elements.

If you accidentally delete a paragraph, there is a way to restore it. You can use Reuse Text Fragments to search for the paragraph and then insert it again. However, this is only possible for a limited time period after the deletion took place (approximately one day). Alternatively, you could use Revert a Text Fragment to a Previous Revision.

This section describes how to delete an element using the XML Tree View.

Caution

If you delete an element, you will also delete its "child" elements. If you are unfamiliar with the concept of "parent" and "child" elements, see Understanding Content Structures.

Tip

If you need to move the copy to a new position in the structure, select it in the XML Tree View and drag it to the new position.

  1. Open a topic in the Editor.

  2. Select the XML Tree View in the side panel.

  3. Expand the hierarchy until you can see the element that you want to delete.

    The XML Tree View shows the main elements in your topic as blue boxes, arranged in a hierarchy that matches the structure. Any box with a white cross has lower level content. If you select the white cross icon, the tree expands to show the lower levels.

    XML Tree View. It shows the hierarchical structure of the current topic. There are blue boxes for each of the block elements, organized in a hierarchy.
    XML tree view of a topic. It shows section at the top level. Second level elements are title, para, and table. Inside the table there is a tbody element. Inside the tbody element there are 5 tr elements, each representing a table row.
  4. Position the cursor over the element you want to delete.

    Paligo displays a copy icon and a delete icon.

    XML Tree View showing the structure of a topic. There is a section at the top level. Inside that, there is a title, para, and a table. The cursor is on the para element and there is a copy icon and a delete icon.
  5. Select the X to the right of the element to delete it

    select-delete-icon.jpg
  6. Select Confirm. If you are unsure, select to keep the content and abort the deletion.

    confirm-delete.jpg

    Note

    If you are unsure, select Cancel to keep the content and abort the deletion.

You can use the Element Structure Menu to delete an element.

  1. Click inside the block element you want to delete.

  2. Select the same element in the Element Structure Menu. For example, if you wanted to delete a paragraph, select para.

    Paligo editor. A close-up of the Element Structure Menu shows that the para element has been selected, revealing a menu of options.
  3. Select Delete.

    Element structure menu. The para element is selected, revealing a menu. The delete option is highlighted in the menu.

    Paligo deletes the element.

  4. Select Save. Save icon.

To delete inline elements, such as guilabel, tag, and emphasis without deleting the content inside them:

  1. Click on the inline element you want to delete.

    Paligo editor. A paragraph has content with a guilabel on one word and emphasis on another word. The emphasis is selected. In the element structure menu, the emphasis element is shown.

    Paligo shows the element in the Element Structure Menu.

  2. Select the Remove Formatting button in the toolbar.

    Edit toolbar. The remove formatting button is highlighted. It is an eraser icon.

    Paligo deletes the inline element without deleting the content inside the inline element.

    Paligo editor. A paragraph is shown. Its inline emphasis element has been removed. The content that was inside the emphasis element remains in place.

Note

Alternatively, you can delete the inline element and the content inside it. To do this, click on the inline element and then either use a keyboard shortcut:

Mac: Option ⌥ + Shift ⇧ + F

Windows: Alt + Shift + F

OR

Select the element in the Element Structure Menu and then select Delete.

Paligo editor. The emphasis element is selected in the element structure menu. A drop down menu is shown and the delete option is highlighted.