# Indentare il testo del paragrafo?

**URL:** <https://meta.discourse.org/t/indent-paragraph-text/211116>\
**Category:** Product Support\
**Created:** [4 Dicembre 2021, 7:44pm UTC](https://meta.discourse.org/t/indent-paragraph-text/211116 "2021-12-04T19:44:56Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)\
**Post date:** [5 Dicembre 2021, 12:52pm UTC](https://meta.discourse.org/t/indent-paragraph-text/211116/13 "2021-12-05T12:52:26Z")

</div>

Puoi usare il mio tema-component come esempio:

> **[GitHub - MonDiscourse/md-composer-extras: Decriptions and more infos in :...](https://github.com/MonDiscourse/md-composer-extras)**
>
> Decriptions and more infos in : https://meta.discourse.org/t/md-composer-extras/118912

Hai due opzioni, aggiungere un’icona alla barra degli strumenti o al menu a ingranaggio

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/1/21f94409ea2f7bfd5fa1e9c646cebcc5d9d141bf.png)

Barra degli strumenti:

```plaintext
api.onToolbarCreate(toolbar => {
    toolbar.addButton({
        id: "align_justify_button",
        group: "extras",
        icon: "align-justify",
        perform: e => e.applySurround('[wrap="justify"]\n', '\n[/wrap]', 'align_justify_text')
    });
});

```

Menu a ingranaggio

```plaintext
api.addToolbarPopupMenuOptionsCallback(() => {
  return {
      action: "floatleft",
      icon: "indent",
      label: "float_left_button"
  };
});

```

Puoi avere alcune opzioni extra con un plugin, ma il componente dovrebbe essere sufficiente: [GitHub - MonDiscourse/discourse-formatting-toolbar: Add formatting options on your post (center, align to right, justify a text, etc.)](https://github.com/MonDiscourse/discourse-formatting-toolbar)

---

_[View the full topic](https://meta.discourse.org/t/indent-paragraph-text/211116)._
