# \<rrw:editor>

```markup
<rrw:editor id="myeditor">
    contenu HTML par défaut
</rrw:editor>
```

Le widget `<rrw:editor>` est rendu comme un bloc `<div>` lors de la publication de la page.

Les attributs disponibles sont :

* `id="xxx"`  **\[obligatoire]** L'identifiant unique du widget Editor, caractères alphanumériques uniquement.
* `class="xxx"` *\[optionnel]* Liste de classes associées à ce bloc de texte
* `data-rrw-edit-bgcolor="#HexColor"` *\[optionnel]* Lorsque le widget est en mode édition, #hexColor est appliquée comme couleur de fond.
* `data-rrw-edit-fgcolor="#HexColor"` *\[optionnel]* Lorsque le widget est en mode édition, #hexColor est appliquée comme couleur de texte.

Le "`contenu HTML par défaut`" est optionnel, il s'affiche lorsque le widget n'a jamais été édité. Ce peut être n'importe quelle balise HTML.

Le widget Editor accepte les widgets enfants suivants :

* [\<rrw:image>](/widgets/widget-image.md)
* [\<rrw:video>](/widgets/widget-video.md)


---

# 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.runrunweb.net/widgets/widget-editor.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.
