# Lists

> Editor42 Lists plugin: ordered, unordered and definition lists, with Tab and Shift+Tab to indent, list-aware Backspace and Delete, and a properties dialog.

Source: https://editor42.com/plugins/lists  
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: `lists`

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

Provides full support for ordered lists (`<ol>`), unordered lists (`<ul>`), and definition lists (`<dl>`). Includes toggling list type, indenting/outdenting via Tab/Shift+Tab, backspace/delete behavior within lists, and a list properties dialog for configuring ordered list start values.

## Options

| Option | Type | Default | Description |
|---|---|---|---|
| `lists_indent_on_tab` | boolean | `true` | Whether Tab indents and Shift+Tab outdents list items. |

## Commands

| Command | Description |
|---|---|
| `InsertUnorderedList` | Toggle unordered list. |
| `InsertOrderedList` | Toggle ordered list. |
| `InsertDefinitionList` | Toggle definition list. |
| `RemoveList` | Remove list formatting. |
| `editor42ListProps` | Open List Properties dialog. |
| `editor42ListUpdate` | Update current list attributes/styles. |

## Toolbar buttons

| Name | Type | Description |
|---|---|---|
| `numlist` | Toggle button | Toggle ordered list (only if advlist is not loaded). |
| `bullist` | Toggle button | Toggle unordered list (only if advlist is not loaded). |

## Menu items

| Name | Description |
|---|---|
| `listprops` | List properties (enabled inside `<ol>`). |

## Events

| Event | Description |
|---|---|
| `ListMutation` | Fired after a list action. Payload: `{ action, element }` where action is `ToggleUlList`, `ToggleOlList`, `ToggleDLList`, `IndentList`, or `OutdentList`. |

## API

| Method | Description |
|---|---|
| `backspaceDelete(isForward)` | Programmatic backspace/delete within lists. |

Also registers a `lists` context menu that shows list properties inside ordered lists.
