Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable checklist #119

Open
rocevas opened this issue Nov 27, 2024 · 1 comment
Open

Disable checklist #119

rocevas opened this issue Nov 27, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@rocevas
Copy link

rocevas commented Nov 27, 2024

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

@neSpecc
Copy link
Contributor

neSpecc commented Nov 27, 2024

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 neSpecc added the good first issue Good for newcomers label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants