
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
@editorjs/nested-list
Advanced tools
Multi-leveled lists for the Editor.js.
Use Tab
and Shift+Tab
keys to create or remove sublist with a padding.
Get the package
yarn add @editorjs/nested-list
Include module at your application
import NestedList from '@editorjs/nested-list';
Optionally, you can load this tool from CDN JsDelivr CDN
Add the NestedList Tool to the tools
property of the Editor.js initial config.
import EditorJS from '@editorjs/editorjs';
import NestedList from '@editorjs/nested-list';
var editor = EditorJS({
// ...
tools: {
...
list: {
class: NestedList,
inlineToolbar: true,
config: {
defaultStyle: 'unordered'
},
},
},
});
Field | Type | Description |
---|---|---|
defaultStyle | string | default list style: ordered or unordered , default is unordered |
You can choose list`s type.
Field | Type | Description |
---|---|---|
style | string | type of a list: ordered or unordered |
items | Item[] | the array of list's items |
Object Item
:
Field | Type | Description |
---|---|---|
content | string | item's string content |
items | Item[] | the array of list's items |
{
"type" : "list",
"data" : {
"style" : "unordered",
"items" : [
{
"content": "Apples",
"items": [
{
"content": "Red",
"items": []
},
{
"content": "Green",
"items": []
},
]
},
{
"content": "Bananas",
"items": [
{
"content": "Yellow",
"items": []
},
]
},
]
}
},
FAQs
Nested list Tool for EditorJS
The npm package @editorjs/nested-list receives a total of 9,556 weekly downloads. As such, @editorjs/nested-list popularity was classified as popular.
We found that @editorjs/nested-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.