Checklist Tool for CodeX.Editor
npm install codex.editor.checklist
This Tool for the CodeX Editor allows you to add checklists to your texts.

Get the package
``shell`
npm i --save-dev codex.editor.checklist
Include module at your application
`javascript`
const Checklist = require('codex.editor.checklist');
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.checklist@1.0.0
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: {
...
checklist: {
class: Checklist,
inlineToolbar: true,
},
}
...
});
This Tool has no config params
| Field | Type | Description |
| ----- | ---------- | -------------------------------------- |
| items | object[] | array of checklist's items |
`json``
{
"type" : "checklist",
"data" : {
"items" : [
{
"text" : "This is a block-styled editor",
"checked" : true
},
{
"text" : "Clean output data",
"checked" : false
},
{
"text" : "Simple and powerful API",
"checked" : true
}
]
}
}