Disable checklist
I can't find any option to remove the checklist. Is it even possible?
There is no option at the moment.
As a workaround you can override the toolbox property for the List tool when passing it to the Editorjs Config:
new EditorJS({
tools: {
list: {
class: EditorjsList,
inlineToolbar: true,
shortcut: 'CMD+SHIFT+L',
toolbox: [
{
icon: 'OL', // OL icon
title: 'Ordered List',
data: {
style: 'ordered',
}
},
{
icon: 'UL', // UL icon
title: 'Unordered List',
data: {
style: 'unordered',
}
}
]
},
}
});
It worked, thanks! However, the checklist is still visible in the tune block.
I just wanted to express my support for this feature. The ability to disable checklists would be incredibly helpful for my workflow as well. I'm eagerly looking forward to its implementation. Thank you all for your hard work on this!
class CustomList extends List {
override renderSettings() {
return super.renderSettings().filter((item) =>
// Here you can filter needed items
// In my case I need to only support unordered and ordered lists without any new options like 'checklist' or 'start from'
// But if you want to only disable Checklist you can filter like (item) => item.label !== 'Checklist'
['Unordered', 'Ordered'].includes((item).label), // as { label: string } if TS
);
}
}
// config
list: {
class: CustomList, // as unknown as ToolConstructable if TS
toolbox: [
{
data: { style: 'ordered' },
},
{
data: { style: 'unordered' },
},
],
},
+1 for this request: checklist is a very special case and it's not useful for most websites
+1 please!
+1 on this. It would be great to be able to pass an array of list types we want to support. ie: ["ordered", "unordered", "checklist"]
+1 I have no idea why we even have it, totally non sense, and so annoying that there's no option to disable it.
+1 I'm new to awesome editor.js but I really don't get the sense of that checklist.
+1
+1
any progress on this?
+1
+1