Default Font Style and Size with Knowledge Articles (specifically the TOC aspect)

Rob Sestito
Mega Sage

Hey there SN Comm -

I already have a default value when it comes to the dictionary of the Article Body for the text.

I am wondering if possible, can the same be done for the TOC feature with the article body?

The current default value for the article body is:

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

However, when someone selects an area they want to start a TOC, the font style and size for the TOC goes to Verdana 8pt.

Is there something more we can do to have the TOC, when initiated, follow suit with our default value above?

Thanks in advance,

-Rob

1 ACCEPTED SOLUTION

Rob Sestito
Mega Sage

Closing this post out. We went with doing the default from the field dictionary level as each team using knowledge liked the idea on what default we would use.

Thanks for helping!

-Rob

View solution in original post

3 REPLIES 3

Sai Kumar B
Mega Sage
Mega Sage

@Rob Sestito 

I don't think it's possible When you set the default value it takes font as per it however when you try to insert TOC it overrides the default font style. I believe you can try adding the TOC tags along with font style in your default value. I haven't tested it. Also, I would suggest you use the onLoad() client script to set the default value instead of setting the value in the dictionary default so, you can set value based on criteria if there is any

Thank you @Sai Kumar 

I will look into doing that.

Cheers,

-Rob

Rob Sestito
Mega Sage

Closing this post out. We went with doing the default from the field dictionary level as each team using knowledge liked the idea on what default we would use.

Thanks for helping!

-Rob