# Attaching and editing Content from the request level

## Attaching Content to the Formatted Content component <a href="#podpiecieiedycjatrescizpoziomuwniosku-podpiecietrescidokomponentutrescformatowana" id="podpiecieiedycjatrescizpoziomuwniosku-podpiecietrescidokomponentutrescformatowana"></a>

After adding the component from the base components panel, **Formatted content** it must be supplied with a content artifact. With the component selected, choose in the component properties panel in the field **CONTENT** the option **Edit content**. This will open the panel and display information that no artifact has been selected. To choose an artifact, use the selection field **Select artifact** located in the panel header. Selecting an artifact automatically selects the latest version. The version can be changed using the selection field **Version**.

![Illustration 1. Formatted content editing panel - artifact selection](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/kERr3mqzrEU3ONysCYEN/33k_files/image2022-12-19_13-50-33.png)

After selecting an artifact, the editor displays the formatted content code and its preview. Content editing is possible after pressing the edit button (![](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/OgRq2eL6DodRj26Ry7M3/33k_files/image2020-10-27_10-33-12.png)).

![Illustration 2. Formatted content editing panel - preview mode from the request](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/Hy25g8jxhUavfjtmC9tZ/33k_files/image2022-12-19_13-54-5.png)

### Edit mode <a href="#podpiecieiedycjatrescizpoziomuwniosku-trybedycji" id="podpiecieiedycjatrescizpoziomuwniosku-trybedycji"></a>

Editing formatted content can take place in the content editor ([Content Editor](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/tresc-textcontent/edytor-tresci)) or directly where it was added (on the request or in a composite component). In the second case, this is done using the tab **Content** in the component properties panel **Formatted content**. In edit mode, the edit button is replaced by the buttons **Discard draft** and **Save**. The artifact name and version selection fields are blocked.

Changes should be made in the code editor available directly under the header. The changes made are stored in a working copy (draft). These changes can be discarded at any time using the button **Discard draft**. To save the changes, click the button **Save**, and then enter the version description in the dialog box that appears. Confirming the dialog will create a minor version of the artifact.

![Illustration 3. Formatted content editing panel - edit mode from the request](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/CF17lBsBJlzS0Rv6SLCC/33k_files/image2022-12-19_13-59-12.png)

{% hint style="info" %}
If the formatted content editing panel is opened and we already have a working copy (draft), a relevant message will appear in the header. In such a situation, you can choose whether you want to continue editing the existing draft or delete the previous draft and create a new one.
{% endhint %}

Information on creating an artifact **Content** is described in [Creating and attaching the Content artifact](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/tresc-textcontent/tworzenie-i-podpiecie-artefaktu-tresc).
