# Preserve your Setka Editor content after the service shutdown

## Introduction

To ensure robust content preservation on Magento after the Setka Editor infrastructure shutdown this guide will do two things:

* [Explain which assets rely on Setka Editor CDN](#assets-that-rely-on-setka-editor-cdn)
* [Describe the steps needed to migrate mentioned assets to a different CDN](#what-to-do-to-preserve-your-data)

## Assets that rely on Setka Editor CDN

The official Setka plugin for Magento can be configured in two ways.

All the files are stored on your server by default. But you can change it in the plugin settings. This table represents where the files are stored, depending on settings:

<table><thead><tr><th width="319">Files</th><th width="210.33333333333331">Stored by default</th><th width="563">If Setka CDN is enabled</th></tr></thead><tbody><tr><td>HTML code</td><td>Your server</td><td>Your server</td></tr><tr><td>CSS files of Setka styles and grids</td><td>Your server</td><td>Setka CDN</td></tr><tr><td>JS files of interactive elements</td><td>Your server</td><td>Setka CDN</td></tr><tr><td>Images</td><td>Magento <code>media</code> folder</td><td>Magento <code>media</code> folder</td></tr><tr><td>Setka Editor JS file</td><td>Your server</td><td>Setka CDN</td></tr></tbody></table>

Setka Editor module for Magento stores all the data on your server, unless you disable **Use Setka Editor files from Local Server** in the module settings.

## How to preserve your data

### Prerequisites

Before you proceed further, check if Setka CDN is enabled in the module settings:

1. Go to **Admin panel** > **Stores** > **Configuration** > **Content Management** > **Setka Editor** > **Editor hosting**.
2. Scroll down to the **Editor files from Local Server** dropdown.
3. If **Editor files from Local Server** is set to **No** — Setka CDN is **enabled**.
4. If **Editor files from Local Server** is set to **Yes** — Setka CDN is **disabled**.

### If Setka CDN is enabled

#### Step 1. Disable the module's connection with Setka CDN

Go to **Admin panel** > **Stores** > **Configuration** > **Content Management** > **Setka Editor** > **Editor hosting** select **Yes** in the **Editor files from Local Server** dropdown. This will force the module to pull all the files from your server instead of Setka CDN.

#### Step 2. Pull the latest CSS and JS files to your server

Go to **Download Job** > **Schedule**. Wait and reload page until you'll see some recent date in the **Last Update** field.

#### Step 3. Replace asset URLs in posts

1. Check if your Setka posts use any assets, stored on Setka CDN:
   1. Open the browser's developer tools (`CMD+ALT+I` on Mac OS or `F12` on Windows).
   2. Switch to the **Network** tab of developer tools.
   3. Filter the list а files by `ceditor.setka.io` and reload the page. You will see the list of files loaded from Setka CDN. You will need to back them up:

      <figure><img src="/files/plFi36ZV24qtuB7clpiu" alt=""><figcaption></figcaption></figure>
2. Examine the asset's location in the Setka integration data.
3. Copy assets from Setka CDN to your own CDN. It is more convenient to copy the whole directory, keeping the paths.
4. Replace asset URLs in posts HTML from Setka CDN to your server. Since Setka keeps url structure it's enough to replace the beginning of the URL. For example `https://ceditor.setka.io/clients/fYe3/css/assets/29778/img/icon.svg>` -> `https://your-domain.name/pub/media/setka_editor/clients/fYe3/css/assets/29778/img/icon.svg`

#### **Step** 4. Uninstall the Setka Editor module

Follow [these steps from the official Magento documentation](https://devdocs.magento.com/guides/v2.3/install-gde/install/cli/install-cli-uninstall-mods.html) to uninstall the Setka Editor module.

### If Setka CDN is disabled

#### Step 1. Pull the latest CSS and JS files to your server

Go to **Download Job** > **Schedule**. Wait and reload the page until you'll see some recent dates in the **Last Update** field.

#### Step 2. Replace asset URLs in posts

1. Check if your Setka posts use any assets, stored on Setka CDN:
   1. Open the browser's developer tools (`CMD+ALT+I` on Mac OS or `F12` on Windows).
   2. Switch to the **Network** tab of developer tools.
   3. Filter the list а files by `ceditor.setka.io` and reload the page. You will see the list of files loaded from Setka CDN. You will need to back them up:

      <figure><img src="/files/plFi36ZV24qtuB7clpiu" alt=""><figcaption></figcaption></figure>
2. Examine the asset's location in the Setka integration data.
3. Copy assets from Setka CDN to your own CDN. It is more convenient to copy the whole directory.
4. Replace asset URLs in posts HTML from Setka CDN to your server. Since Setka keeps url structure it's enough to replace the beginning of the URL. For example `https://ceditor.setka.io/clients/fYe3/css/assets/29778/img/icon.svg>` -> `https://your-domain.name/pub/media/setka_editor/clients/fYe3/css/assets/29778/img/icon.svg`

#### Step 3. Uninstall the Setka Editor module

Follow [these steps from the official Magento documentation](https://devdocs.magento.com/guides/v2.3/install-gde/install/cli/install-cli-uninstall-mods.html) to uninstall the Setka Editor module.


---

# 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://setka.gitbook.io/help-center/integrations/setka-editor-and-magento/preserve-your-setka-editor-content-after-the-service-shutdown.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.
