# Preserve your Setka Editor content after the service shutdown

## Introduction

To ensure robust content preservation on Bitrix 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 Bitrix 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>Your server</td><td>Your server</td></tr><tr><td>Setka Editor JS file</td><td>Your server</td><td>Setka CDN</td></tr></tbody></table>

Setka Editor module for Bitrix stores all the data on your server, unless you enable **Connect Setka files from CDN** 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 **Settings** > **Product settings** > **Module settings** > **Setka Editor**.
2. Scroll down to the **Connect Setka files from CDN** checkmark.
3. If **Connect Setka files from CDN** is checked — Setka CDN is **enabled**.
4. If **Connect Setka files from CDN** is unchecked — Setka CDN is **disabled**.

### If Setka CDN is enabled

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

Go to **Settings** > **Product settings** > **Module settings** > **Setka Editor** and uncheck the **Connect Setka files from CDN** checkmark. 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

In **Settings** > **Product settings** > **Module settings** > **Setka Editor** scroll down and click the **Update styles from the Setka Style Manager** button. This will download latest versions of files Setka Editor requires for the local operation.

#### 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 Bitrix documentation](https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43\&LESSON_ID=3475) to uninstall the Setka Editor module.

During the process of uninstalling, Setka Editor will bring up instructions on how to link Setka styles and JS files to the core of your site. This will let Setka posts preserve their styling in absence of the Setka Editor module.

### If Setka CDN is disabled

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

In **Settings** > **Product settings** > **Module settings** > **Setka Editor** scroll down and click the **Update styles from the Setka Style Manager** button. This will download latest versions of files Setka Editor requires for the local operation.

#### 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, 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 3. Uninstall the Setka Editor module

Follow [these steps from the official Bitrix documentation](https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43\&LESSON_ID=3475) to uninstall the Setka Editor module.

During the process of uninstalling, Setka Editor will bring up instructions on how to link Setka styles and JS files to the core of your site. This will let Setka posts preserve their styling in absence of 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-and-bitrix/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.
