# How to Load and Save the Editor Content

You will probably need to save the HTML content from the editor element to the database or using API in your app. Then you will also need to load that content from the database to display it in the editor. We offer two ways how to do that.

### How to configure the editor element to load and save the content:

**Option 1 (suggested):** If you need more control over the content saving/loading and avoid possible unwanted behavior, set-up the following:

* To load the data to the editor, use [Initial content](/tinymce-rich-text-editor-for-bubble/element-reference/fields.md#initial-content) element field action. Alternatively, you can use [Set content](/tinymce-rich-text-editor-for-bubble/element-reference/actions/set-content.md) action.

<figure><img src="/files/0TOxmcu9N3YaedYKtc3R" alt=""><figcaption></figcaption></figure>

* To store editor data, use [content changed](/tinymce-rich-text-editor-for-bubble/element-reference/events.md#content-changed) event and [html content](/tinymce-rich-text-editor-for-bubble/element-reference/states.md#html-content) state in your workflow.

<figure><img src="/files/i25prgUsA6otYPnbTtAy" alt=""><figcaption></figcaption></figure>

**Option 2 (easier):** The easiest way is to use 'Enable auto-binding on parent element's thing' feature. See Bubble documentation for more details.

<figure><img src="/files/kJ8amOdyqknzOq3WQwbc" alt=""><figcaption></figcaption></figure>

***

To display the HTML content created by the TinyMCE plugin outside of the editor, see:

{% content-ref url="/pages/5wzzIVp9pDvpladXqnB9" %}
[Render TinyMCE Content Outside the Editor](/tinymce-rich-text-editor-for-bubble/getting-started/render-tinymce-content-outside-the-editor.md)
{% endcontent-ref %}


---

# 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://enhancio.gitbook.io/tinymce-rich-text-editor-for-bubble/getting-started/how-to-load-and-save-the-editor-content.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.
