How do I get the Table of Contents button back on the TinyMCE HTML Toolbar when editing Knowledge Articles?

Sam Kolas
Tera Contributor

The table of contents (TOC) button has disappeared from the TinyMCE html editor when editing knowledge articles.  The Format button had also disappeared.

I went to System Properties > UI Properties and was able to successfully add format select to the TinyMCE fields.  I also put in TOC.  When I save, it seems to save, but when I go to edit a knowledge article, only the Format dropdown shows.  The TOC button does not.  Has the TOC been deprecated or am I doing something wrong?

1 ACCEPTED SOLUTION

Hey Sam,

I think I hit the same problem you had trying to follow along with ServiceNow's documentation. I got a PDI to look at what they have OOB and found ServiceNow uses editor.toolbar= in there.

After experimenting a bit and finding https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0863753, my conclusion is that SN's docs are plain wrong.

Here's what I know so far:

  • You need to specify editor.plugins=<whatever>.
  • If you specify editor.toolbar=<whatever>, that overrides the toolbar to whatever you have in there.
  • You can use tinymce_toolbar1=<whatever> and tinymce_toolbar2=<whatever> instead of editor.toolbar to specify what goes on different lines.
  • Not all of the "valid buttons" work. For example, forecolor and backcolor don't work. They do appear if they're in you're default config and you're not doing these overrides.

I'm curious if you noticed this problem after upgrading to Rome. One of our users brought this up to us after the Rome upgrade.

View solution in original post

9 REPLIES 9

Maik Skoddow
Tera Patron
Tera Patron

Hi @Sam Kolas 

as you can on https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/workspace/concept/ti... the buttons bar can be overridden for a specific via Dictionary attribute. Check the values for the article body field at Dictionary and add "toc" if that button is missing there.

Kind regards
Maik

I add the TOC plug in and I get it, but then it deletes many of the other options such as bullet list, numlist, code....  I try to add the other options and only some will show, but not all that I had before.

Hey Sam,

I think I hit the same problem you had trying to follow along with ServiceNow's documentation. I got a PDI to look at what they have OOB and found ServiceNow uses editor.toolbar= in there.

After experimenting a bit and finding https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0863753, my conclusion is that SN's docs are plain wrong.

Here's what I know so far:

  • You need to specify editor.plugins=<whatever>.
  • If you specify editor.toolbar=<whatever>, that overrides the toolbar to whatever you have in there.
  • You can use tinymce_toolbar1=<whatever> and tinymce_toolbar2=<whatever> instead of editor.toolbar to specify what goes on different lines.
  • Not all of the "valid buttons" work. For example, forecolor and backcolor don't work. They do appear if they're in you're default config and you're not doing these overrides.

I'm curious if you noticed this problem after upgrading to Rome. One of our users brought this up to us after the Rome upgrade.

how are you able to get toc to show at all? i can't seem to do it