# Rich text

> The WordPress editor: bold, links, lists, images.

Source: https://uglydev.com/field-types/rich-text/
Updated: 20 November 2026

**When to use it.** Formatted text: an article body, a description with bold, lists and links.

**What the editor sees.** The WordPress text editor, with the **toolbar** you chose (Basic, Full or Minimal), and tabs **Visual** and **Code**.

![The Rich text field on an edit screen](https://uglydev.com/wp-content/uploads/2026/11/shot-rich-text-1.webp)

*The Rich text field on an edit screen.*

|  |  |
| --- | --- |
| **Name in files and code** | `wysiwyg` |
| **`ugly_get()` gives** | Ready HTML, with paragraphs and shortcodes. |
| **Behavior** | can be required; can share a line with other fields |

**Settings**

| Setting | What it does | Default |
| --- | --- | --- |
| **Editor tabs** | Choices: `{'value': 'all', 'label': 'Visual & Text'}`, `{'value': 'visual', 'label': 'Visual only'}`, `{'value': 'text', 'label': 'Text only (HTML)'}`. | `all` |
| **Toolbar** | Choices: `{'value': 'basic', 'label': 'Basic (bold, italic, lists, alignment, links)'}`, `{'value': 'full', 'label': 'Full (headings, alignment, colors...)'}`, `{'value': 'minimal', 'label': 'Minimal (bold, italic, link)'}`. | `basic` |
| **Allow adding images and files** |  | On |
| **Start the editor when it is clicked** | The editor starts only when someone asks for it. A page with many editors opens faster. | Off |
| **Height (rows)** |  | `8` |

**In your theme**

```php
// Ready HTML, with paragraphs and shortcodes:
echo ugly_get( 'body' );

// Or, to be safe by the rules of a post:
<div class="prose"><?php ugly_show( 'body' ); ?></div>
```

**Good to know**

- It gives **ready HTML**: paragraphs added, shortcodes run.
- Your own toolbars are added with the filter `ugly_editor_toolbars`. See [Hooks](https://uglydev.com/docs/hooks-and-filters/).
- The look of the editor follows your theme: `add_editor_style()`, `tiny_mce_before_init` and `mce_buttons` reach these editors too, also inside rows and blocks.
- **Start the editor when it is clicked** loads the editor only when the person clicks it. Good for a repeater with many rows.
