# Attaching and editing Content from the application

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

After adding the component from the basic components panel, **Formatted content** it needs to be populated with a content artifact. With the component selected, choose in the component properties panel in the field **CONTENT** window the **Edit content**. This will open the panel and display information about the lack of a selected artifact. To choose an artifact, use the selection field **Select artifact** located in the panel header. Selecting an artifact causes the latest version to be selected automatically. The version can be changed using the selection field **Version**.

![Figure 1. Formatted content editing panel - artifact selection](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/2VeOlLxtr2cV8qzBde9P/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/DFyON140SLzi3JlSBIsf/33k_files/image2020-10-27_10-33-12.png)).

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

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

Editing formatted content can be done 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 (in 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 locked.

Changes should be made in the code editor available directly below 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 a version description in the dialog box that appears. Confirming the dialog will create a minor version of the artifact.

![Figure 3. Formatted content editing panel - edit mode from the request view](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/UJNaOS2XO3O4KxHRR462/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) of it, an appropriate message will appear in the header. In such a case, you can choose whether 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/tresc-textcontent/podpiecie-i-edycja-tresci-z-poziomu-wniosku.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
