Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

425
Visualizações
How to disable list types for Jodit Editor?

I want to update my Jodit dependency to the latest version, but I want to disable the differnt list style types for ordered and unordered lists. Is there any way how I can achive this?

In the old version, that I'm currently using I can simple select a ordered or an unordered list. enter image description here

In the latest version there are differnt styles, but I only want <ul></ul> or <ol></ol> without giving the user the option values to select e.g. "Lower Alpha" or "Lower Greek"

enter image description here

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

You can use the Jodit Playground to disable the plugins. The ordered and unordered lists belong together and can be disabled this way:

var editor = new Jodit("#editor", {
  "disablePlugins": "ordered-list"
});

Before: enter image description here

After: enter image description here

about 4 years ago · Juan Pablo Isaza Relatório

0

I partially solved it, by overwriting the config for ul ol controls.

__Editor = new Jodit('#editor', {
        controls: {
            ul: {
                list: Jodit.atom({
                    default: 'Default'
                })
            },
            ol: {
                list: Jodit.atom({
                    default: 'Default'
                })
            }
        }
    });

Jodit.atom causes a replacment of the default values. https://xdsoft.net/jodit/pro/docs/how-to/add-custom-font-family.md

You can find the default values in the plugin defintion file: https://xdsoft.net/jodit/pro/docs/how-to/add-custom-font-family.md

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda