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

138
Visualizações
Summernote Bold style not working in angular application

I am using Summernote in my angular application. I have imported CSS as well as JS.

   "./node_modules/summernote/dist/summernote-lite.min.css"
      "node_modules/summernote/dist/summernote-lite.min.js"

I have initialised the Summernote in my component.

$('#summernote').summernote({
  toolbar: [
    ['style', ['style']],
    ['font', ['bold', 'italic', 'underline', 'clear']],
    ['color', ['color']],
    ['para', ['ul', 'ol', 'paragraph']],
    ['height', ['height']],
    ['table', ['table']],
  ],
});

Everything works fine other than the Bold function. The problem is if I write some text inside the text field and select all the text and click Bold icon on toolbar or click ctrl+B on keyboard, nothing happens. But if I select a substring of that text and click B button, then it becomes bold. See image here.

If I toggle B button and start writing, then text will be written in Bold. What am I missing ?

I tried "node_modules/summernote/dist/summernote-bs5.min.js" and respective CSS and bs4 and respective CSS as well.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Check the styles applied for HTML element "paragraph". Some other styles might be overriding it. This usually happens if we have applied styles on the body or which are across the entire application.

about 4 years ago · Santiago Trujillo 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