Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Power paste using TinyMCE HTML with clean option.

Ramkumar Thanga
Mega Sage

Hi All,

 

When the clean paste option is used in the property 'glide.ui.html.editor.paste.html_import'​ the html fields applies Font Verdana and a Font Size 8pt during a import from HTML.

We would like to have this behavior changes where the Font applied would be "Arial" and the Font Size "10pt" as a default font size and font font family.

 

I tried with the following solution as per the following article KB0717120, It works when you type on your own but it doesn't works when you try to paste a content from a HTML page.

 

<p><span style="font-family: arial; font-size: 10pt;">&nbsp;</span></p>

 

Thanks!
Ramkumar

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi Ramkumar,

Verdana is hard-coded as the default font within the CSS when presented in the TinyMCE editor. This is done by ServiceNow and isn't overridable via configuration. 

 

Because there is no font-family being defined within the html of the knowledge article, you could override the font family within kb_view or service portal. This would allow you to choose a default font in those views, but it'll still show as Verdana when the article is being edited

View solution in original post

1 REPLY 1

Kieran Anson
Kilo Patron

Hi Ramkumar,

Verdana is hard-coded as the default font within the CSS when presented in the TinyMCE editor. This is done by ServiceNow and isn't overridable via configuration. 

 

Because there is no font-family being defined within the html of the knowledge article, you could override the font family within kb_view or service portal. This would allow you to choose a default font in those views, but it'll still show as Verdana when the article is being edited