Lists
Plugin alias: lists
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.