nested-list icon indicating copy to clipboard operation
nested-list copied to clipboard

Disable checklist

Open rocevas opened this issue 1 year ago • 14 comments

I can't find any option to remove the checklist. Is it even possible?

rocevas avatar Nov 27 '24 08:11 rocevas

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',
              }
            }
          ]
        },
    }
});

neSpecc avatar Nov 27 '24 09:11 neSpecc

It worked, thanks! However, the checklist is still visible in the tune block.

rocevas avatar Dec 01 '24 17:12 rocevas

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!

ChristianMaidhof avatar Jan 04 '25 16:01 ChristianMaidhof

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' },
      },
    ],
  },

smite107 avatar Feb 04 '25 12:02 smite107

+1 for this request: checklist is a very special case and it's not useful for most websites

collimarco avatar Feb 12 '25 10:02 collimarco

+1 please!

paikea avatar Feb 13 '25 02:02 paikea

+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"]

Fdobboletta avatar Mar 26 '25 14:03 Fdobboletta

+1 I have no idea why we even have it, totally non sense, and so annoying that there's no option to disable it.

khanhartisan avatar Apr 16 '25 07:04 khanhartisan

+1 I'm new to awesome editor.js but I really don't get the sense of that checklist.

timoostrich avatar May 27 '25 14:05 timoostrich

+1

AntonStruiGeneralSoft avatar May 31 '25 08:05 AntonStruiGeneralSoft

+1

immdevrov avatar Jun 10 '25 10:06 immdevrov

any progress on this?

vkarisari avatar Jun 12 '25 08:06 vkarisari

+1

sann4ez avatar Oct 09 '25 06:10 sann4ez

+1

LeonB24 avatar Nov 05 '25 09:11 LeonB24