Table of content in Knowledge Articles

MarcinW_
Tera Contributor

Hello, 

I am trying to enable the table of content in the html editor, but it looks like the option does not exist.

I have tried the following so far:

1. Inset table of content: 

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/product/knowledge-management/task/insert-toc-html-editor.html

that did not work as the button was not available.

2. then I went to

https://docs.servicenow.com/bundle/quebec-platform-administration/page/administer/form-administration/task/t_ConfigureTheTinyMCEHTMLToolbar.html 

that did not help

3. then I went to this

https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/workspace/concept/tinymce.html

4. after that I started experimenting  and  modified that value field for glide.ui.html.editor.v4.toolbar.valid.buttons to include buttons that I could not see (anchor and toc), that did work for the anchor but not for the toc. 

so right now I do not know what else to do to get the toc and the toc update available in my HTML editor

 

 

1 ACCEPTED SOLUTION

Jiri Skala
Giga Guru

Today, I tested this feature in more detail in three of our demo instances: Quebec, Paris, and Orlando. Here are my findings:

  1. In Orlando: "toc" is not by default included in properties glide.ui.html.editor.v4.toolbar.valid.buttons and glide.ui.html.editor.v4.toolbar.line1. And even after I added it manually to both properties, the "toc" icon didn't appear in the toolbar.
  2. In both Paris and Quebec, "toc" is by default included in property glide.ui.html.editor.v4.toolbar.valid.buttons, and the "toc" icon appears in the toolbar even it is not in the value field in glide.ui.html.editor.v4.toolbar.line1. See the screenshots from the Paris instance:

find_real_file.png

find_real_file.png

find_real_file.png

 

My personal conclusion: "toc" is a feature that was added in Paris, and your instance was upgraded from Orlando or an earlier version, but something went wrong during the upgrade, and this is the reason why this feature is not available there. I think you have two options: either instance z-boot or to report an issue on HI.

View solution in original post

11 REPLIES 11

Jiri Skala
Giga Guru

That's strange, indeed. I have just tried it on my PDI (Quebec), and it works as described in the documentation.

1. I have updated property glide.ui.html.editor.v4.toolbar.line1 by adding the element toc.

2. The icon appeared in the editor, and it worked; see the screenshot:

find_real_file.png

3. Maybe you can try to use it in another instance?

Eric Viets
Mega Expert

We are testing upgrading from Ontario to Quebec right now and it appears to me that the System Properties... UI Properties settings for the TinyMCE are being ignored. It also appears (whether this is the same or not) that it is also ignoring glide.ui.html.editor.v4.toolbar.line1 and glide.ui.html.editor.v4.toolbar.line2 values.

If any OOTB feature is not working on an instance whereas it works correctly on other instances, you might report the issue to HI, asking them for support. 

MarcinW_
Tera Contributor

This is how my toolbar looks like after all the changes:

find_real_file.png

Available buttons: 

find_real_file.png

glide.ui.html.editor.v4.toolbar.line1 

find_real_file.png

glide.ui.html.editor.v4.toolbar.line2

find_real_file.png

To be honest I am not sure where else to look to get this fixed... 

@Jiri Skala yes I have tried that on other instances available to me (they are all clones of one) but still the same result. Would you be able to share screen grabs of your settings for: glide.ui.html.editor.v4.toolbar.line1, glide.ui.html.editor.v4.toolbar.line2 and glide.ui.html.editor.v4.toolbar.valid.buttons?