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

96
Visualizações
tinymce changing the font family when clicking

I'm using tinyMCE, and I set the value of my font-family and font-size, through the function:

setup: (editor) => {
  editor.on('init', (ed) => {
     ed.target.editorCommands.execCommand("fontName", false, `${this.request.reportFontFamily}`);
     ed.target.editorCommands.execCommand("fontSize", false, `${this.request.reportFontSize}pt`);
   })
}

With that he starts with the values ​​I need. But when I click anywhere in tinyMCE it sets the font to sans-serif. This happens even though I manually select the font.

So whenever I click on any part of tiny, it will set to sans-serif.

Can anyone help me with this?


about 4 years ago · Juan Pablo Isaza
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