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

202
Visualizações
how can I style ckeditor5?( background-color and stuff )

I've been trying to give background-color to ckeditor but nothing seems to work.

looked at the class names in browser inspect and tried to write style relative to those classes, but it didn't work. I think it overrides them.

can anyone help me out?

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

0

  1. Check if the styles you wrote were loaded properly, you should see them in the dev tools with a strikethrough if they're not applied
  2. increase the specificity of the styles, either by giving them a parent so it'd be .parent .class {} or if that's not enough to override the class of CKEditor you can keep increasing the specificity or adding !important, I prefer not using important unless if I must, because you may want to override the override later.
about 4 years ago · Juan Pablo Isaza Relatório

0

The background colour of the ckeditor5 window is defined using a CSS variable like this:

.ck.ck-editor__main>.ck-editor__editable {
    background: var(--ck-color-base-background);
    border-radius: 0;
}

You can customise the appearance but importing a new CSS file that overwrites these variables. They provide a good guide here: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/deep-dive/ui/theme-customization.html

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