How Can I Set a Default Font Family and Font Size for HTML Fields in Knowledge Articles?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
We have tried to change the default font size/font colour/font to helvetica via a dictionary entry on the article body field of our knowledge articles. I find this advice from previous posts on here. It all seemed to be fine but what it has done is to mess up the formatting for H1, H2, H3 tags and so on (the all now default to helvetica pt 12).
Is this to be expected and are there there ways to make the TinyMCE editor default to Helvetica (and not the default Vedana).
Thanks in advance.
David.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @davidsmith
Refer KB:KB0957850 Default fonts for "text" html field on Knowledge Articles
Resolution
Default font of HTML type field can be modified by right clicking on the "text" html field and choose "Configure dictionary". Then insert this into the default value as-
<p><font-size="5" font-family="times">Text</font></p>
or
<p><span style="font-family: serif, sans-serif; font-size: 12pt;"> </span></p>
Then all new kb articles will start with this font size and font family.
Refer Community link below-
Set Default Font Family and Font Size on Knowledge Articles (HTML-filed)
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Many thanks for replyint to be. I did kmow about the that knowledge article.
This is our current setting:
<p><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: #424a52;"> </span></p>
As stated the issue that we are having is this setting is messing up the the H1 and H2 tags. Please see below.
<h1><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: #424a52;"> Heading 1</span></h1>
<h2><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: #424a52;"><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: rgb(66, 74, 82);"> Heading 2</span></span></h2>
<p><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: #424a52;"><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: rgb(66, 74, 82);"> Heading 3</span></span></p>
<p><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: #424a52;"><span style="font-family: helvetica, sans-serif; font-size: 12pt; color: rgb(66, 74, 82);"> Heading 4</span></span></p>
David
