Elements and Attributes

3 min read

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 Parent and child relationships in structured content.

  • 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.

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

    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.

Delete Elements with XML Tree View

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 Parent and child relationships in structured content.

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.

  4. Position the cursor over the element you want to delete.

    Paligo displays a copy icon and a delete icon.

  5. Select the X to the right of the element to delete it

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

    Note

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

Delete Elements with Element Structure Menu

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.

  3. Select Delete.

    Paligo deletes the element.

  4. Select Save.

Delete Inline Elements

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 shows the element in the Element Structure Menu.

  2. Select the Remove Formatting button in the toolbar.

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

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.