# SharinPix To Rich Text Area

The **SharinPix To Rich Text Area** component permits to send and display a list of images selected from **SharinPix Album** component to a **Rich Text Field** in the form of a table of images.

![](/files/NjtNlC2jbDARoQw1Qmu6)

**Information:**

This feature is only available on Lightning. It can be used on:

* Community Builder
* Page Builder
* Desktop
* Mobile

## Getting Started

{% hint style="warning" %}
**Note:**

In order to use this component, you should ensure that:

1. Image Sync is enabled for the **SharinPix Album** component. To do so, check the **Enable Image Sync** checkbox in the SharinPix Album's parameters. This step is required to enable the creation of **SharinPix Image Objects** upon image uploads. You can click [here](/documentation/image-sync/setup-sharinpix-image-sync.md) for more information about how to setup the SharinPix Image Sync.
2. Your Record Page has **at least one** field of type **Text Area (Rich)** to append the images to.
3. The Text Area (Rich) field should be set at maximum length, that is, at 131,072 characters.
   {% endhint %}

To use the SharinPix To Rich Text Area component, you simply need to drag and drop the component from the Lightning App Builder onto your page layout.

![](/files/TEH4aHTInEwyOqWQ3s96)

## Lightning Component Parameters

![](/files/zOWLVoMwRXLwcH8EGtRh)

* **Rich Text Area to append to:** The field in which the table of images will be appended.
* **Append Button Label:** The personalized label if needed (By default it’s Append to + the label of the field)
* **Replace Rich Text Area content**: If checked, the targeted Rich Text Area's contents will be replaced. Previous content will be lost and cannot be recovered.
* **Image URL field:** The image URL field from SharinPix Image object you want us to use (Type of image transformation). The default value is **sharinpix\_\_ImageURLFull\_\_c** which displays the images in full size.
* **Image Caption text:** The text field from SharinPix Image object used as caption for each image.
* **Number of columns:** The number of columns you want for the table generated for the table of images.
* **Group by:** Group images in date sections according to date field chosen. Leave **None** if no section is needed.

**Tip:**

The SharinPix package includes the Apex class **SharinPixToRichTextAutomation** consisting of an invocable method which can be used to automatically append images to a Rich Text using Process Builders and Flows. For more information on how to set up such automations, refer to the following article: [Append images to a Rich Text field using a Process Builder or Flow (Admin-Oriented)](/documentation/cookbook/append-images-to-a-rich-text-field-using-a-flow-admin-oriented.md)

## Demo

Upload and select SharinPix images:

![](/files/KKZuPolEsEIrtSyKcPCr)

Click on the button **Append to My Images** to generate the table and to display the images inside the targeted Rich Text field as shown below:

![](/files/Xmf355qrnCigBtpkjeQB)

Below is an example of a table with sections of images date taken.

![](/files/KLW4K0Kgrcmi2F72LMMA)

{% hint style="warning" %}
**Note:**

If no images have been selected, all images found in the album will be selected by default to generate the table of images.
{% endhint %}


---

# 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.sharinpix.com/documentation/lightning-web-component/sharinpix-to-rich-text-area.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.
