The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Setting a default font and font size for html article body in Knowledge table

saranyavs
Tera Expert

 

Hi team,

 

We have a requirement to set default KM HTML editor fonts as described below: Is there any method available to implement this feature.?

 

Main font - Arial 12
H1 font - Arial 18 bold
H2 font - Arial 14 bold
H3 font - Arial 12 bold

 

Regards,

Saranya

1 ACCEPTED SOLUTION

Chaitanya ILCR
Mega Patron

Hi @saranyavs ,

ChaitanyaILCR_0-1756139468774.png

try this go to the article body dictionary entry and add this in the default value

 

<style>
  p{
    font-family: arial, helvetica, sans-serif;
    font-size: 12pt;
  }
  h1,h2,h3{
    font-family: arial, helvetica, sans-serif;
    font-weight: bold;
  }
  h1{
    font-size: 18pt;
  }h2{
    font-size: 14pt;
  }h3{
    font-size: 12pt;
  }

</style>

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

View solution in original post

2 REPLIES 2

Rafael Batistot
Kilo Patron

Hi @saranyavs 

May you use an Article template to pre-configurate your fonts 

  • You can create a KM Article Template with your preferred font and size applied to the body text.

  • When a user creates a new article using that template, the content will already have the formatting.

  • Limitation: this only applies to new articles created from the template. It won’t change the editor’s actual default font.

 

https://www.servicenow.com/docs/bundle/washingtondc-servicenow-platform/page/product/knowledge-manag...

 

Chaitanya ILCR
Mega Patron

Hi @saranyavs ,

ChaitanyaILCR_0-1756139468774.png

try this go to the article body dictionary entry and add this in the default value

 

<style>
  p{
    font-family: arial, helvetica, sans-serif;
    font-size: 12pt;
  }
  h1,h2,h3{
    font-family: arial, helvetica, sans-serif;
    font-weight: bold;
  }
  h1{
    font-size: 18pt;
  }h2{
    font-size: 14pt;
  }h3{
    font-size: 12pt;
  }

</style>

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya