List Tool for CodeX.Editor
npm install codex.editor.list
This Tool for the CodeX Editor allows you to add ordered or unordered (bulleted) lists to your article.

Get the package
``shell`
npm i --save-dev codex.editor.list
Include module at your application
`javascript`
const List = require('codex.editor.list');
1. Upload folder dist from repositorydist/bundle.js
2. Add file to your page.
You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/codex.editor.list@1.0.2
Then require this script on page with CodeX Editor.
`html`
Add a new Tool to the tools property of the CodeX Editor initial config.
`javascript`
var editor = CodexEditor({
...
tools: {
...
list: {
class: List,
inlineToolbar: true,
},
}
...
});
This Tool has no config params

You can choose lists type.
| Field | Type | Description |
| ----- | ---------- | -------------------------------------- |
| style | string | type of list: ordered or unordered |
| items | string[] | array of list's items |
``json``
{
"type" : "list",
"data" : {
"style" : "unordered",
"items" : [
"This is a block-styled editor",
"Clean output data",
"Simple and powerful API"
]
}
},