Set Default Font Family and Font Size on Knowledge Articles (HTML-filed)

andersbogsjo
Tera Guru

Hi!

Is it possible to change the Default Font Family and Font Size when creating new Knowledge Articles via some kind of configuration?

Or is the only possible way around to use Templates?

Regards

Anders Bogsjö

1 ACCEPTED SOLUTION

Try with this code:

<p><span style="font-family: serif, sans-serif; font-size: 12pt;">&nbsp;</span></p>

Please, remember to mark Correct or Helpful if you find my response useful.

Cheers
Alberto

View solution in original post

13 REPLIES 13

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi Anders,

You can right click the "text" html field and choose "Configure dictionary". Then insert this into the default value

<p><font-size="5" font-family="times">Text</font></p>

Then all new kb articles will start with this font size and font family.

Keep in mind that it's not possible to start with an empty field, as the editor will not accept an empty paragraph tag, only with a font size in it.

Hope this will fit your need.

Please, remember to mark Correct or Helpful if you find my response useful.

Cheers
Alberto

 

Have you tried using &nbsp; instead of dummy text and seen if that works?

Hi Alberto!

With that code, it doesnt seem to work.

If I change the value in the code for font-size, or the font-family, the result is still the same?

And in the boxes it still shows the for FAmily and size it is still the same

find_real_file.png

Regards

Anders

Try this <p><span style="font-family: verdana, geneva; font-size: 12pt;">&nbsp;</span></p>