Package Exports
- @editorjs/list
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@editorjs/list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
List Tool for Editor.js
This Tool for the Editor.js allows you to add ordered or unordered (bulleted) lists to your article.

Installation
Install via NPM
Get the package
npm i --save-dev @editorjs/listInclude module at your application
const List = require('@editorjs/list');Download to your project's source dir
- Upload folder
distfrom repository - Add
dist/bundle.jsfile to your page.
Load from CDN
You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/@editorjs/list@1.0.2
Then require this script on page with Editor.js.
<script src="..."></script>Usage
Add a new Tool to the tools property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
list: {
class: List,
inlineToolbar: true,
},
}
...
});Config Params
This Tool has no config params
Tool's settings

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