# Image

> Editor42 Image plugin — enables inserting and editing images via a dialog with source, alt text, dimensions, and more.

Source: https://editor42.com/plugins/image  
Every page of editor42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://editor42.com/llms-full.txt

Plugin alias: `image`

```js
editor42.init({
  plugins: 'image'
});
```

Enables inserting and editing images via a dialog with fields for source URL, alt text, dimensions, and optionally an advanced tab for border/spacing/CSS styles. Supports image upload, image lists, class selection, and caption wrapping via `<figure>`.

## Options

| Option | Type | Default | Description |
|---|---|---|---|
| `image_dimensions` | boolean | `true` | Show width/height fields. |
| `image_advtab` | boolean | `false` | Show Advanced tab. |
| `image_uploadtab` | boolean | `true` | Show Upload tab. |
| `image_prepend_url` | string | `''` | URL prefix for image sources. |
| `image_class_list` | object[] | — | CSS classes in dropdown. |
| `image_description` | boolean | `true` | Show alt text field. |
| `image_title` | boolean | `false` | Show title field. |
| `image_caption` | boolean | `false` | Show caption checkbox. |
| `image_list` | false/string/object[]/function | `false` | Predefined image list. |

## Commands

| Command | Description |
|---|---|
| `editor42Image` | Opens insert/edit image dialog. |

## Toolbar buttons

| Name | Type | Description |
|---|---|---|
| `image` | Toggle button | Active when image is selected. |

## Menu items

| Name | Description |
|---|---|
| `image` | Insert/edit image. |

Also registers a context menu entry on images.
