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

check the values? when i go to dictionary of article body field where do i add toc?

Sam Kolas
Tera Contributor

That did the trick.  Thank you!

ShivarajG
Tera Contributor

By adding both in editor.plugins=toc... and editor.toolbar=toc in the Article body attributes.

Jesper Slot
Tera Guru

I know this is an old post but maybe others come across it again. I was also missing TOC and it was missing on fields which had no dictionary attributes set, so I was quite puzzled.
In the end I found that it was missing in a sys property which I havent seen mentioned before:  "glide.ui.html.editor.v5.enabled_plugins". 

Simply adding it to the list made it visible on our html fields again. 

Thanks! That worked for me. It was driving me crazy trying to figure out why it didn't show up!