How do you format tables in Help Center? | The place for Zendesk users to come together and share
Skip to main content
Sep 20, 2013 3:04 PM UTC
Delivered

How do you format tables in Help Center?

Related products:Knowledge

We've migrated our content to the new Help Center. The removal of a table tool in the WYSIWYG editor is rather annoying although we figured we could get around this by coding tables manually in the HTML editor (most of our articles contain tables of data). Although (on the face of it) you can do this, when you view the article in the browser the HTML table formatting is stripped out. It turns out the only way to display tables is by enabling the option to display "unsafe HTML". Why would tables be considered unsafe? Is this really by design? Also, if you look at the list of unsafe tags, table/td/tr are not there so why is Help Center behaving in this way? [As it happens, "href" is also considered unsafe - it would be an extremely odd knowledgebase that did NOT include links to other articles etc].

To be clear, I only want those with the ability to create KB articles to be able to format with tables etc; I'm not wanting community users to be able to do this in their forum posts. There appears to be no distinction in Help Center though. What am I missing?

This topic has been closed for replies.

59 replies

Oct 3, 2013 6:46 PM UTC

We are running into this issue.  We can create the table in the agent view, but it displays as a jumble of text in the customer facing article.

Translate
Employee
Oct 3, 2013 9:24 PM UTC

Hi Chad, 

David had submitted a ticket about this - I was able to find it and the reply from the Product Manager for Help Center.

Details are: 

  • Right now you'll need to check the box next to "Display unsafe content" in the "General settings" area of Help Center to get tables to work in Knowledge Base articles.
  • The fact that you have to do this to get tables to show is a mistake that we're working on fixing right now. (We did not mean to make these tags part of the unsafe tag set.)
  • The fix should be out in the next few days. 
  • Tables are only allowed for agents writing KB articles. (I don't know if that's the case permanently as content formatting will improve for end-users over time but for now it is). 
  • Only agent can post articles.
  • We're also planning to make it easier to add tables in articles for agents.

I hope that helps, please let me know if you have more questions!

 

 

Translate
Nov 27, 2013 5:40 PM UTC

Hi Laura,

When are you planning to make it easier for agents to add tables?  We have a lot we need to add and are doing a big push to create articles next week.Can you point us to a best practice for adding them in the time being?  

Thanks,

Josh

Translate
Employee
Nov 27, 2013 6:20 PM UTC

Hi Josh, 

We haven't firmed up a timeline for improving the HTML article editor yet. In the meantime I have heard of customers using table generators to create HTML code which can be pasted into the HTML view of an article (use the "</>" button in the editor to get get to this view). Quite a few of these came up when I searched Google - this one seemed to have an easy to use interface and laid out the code nicely: http://www.tablesgenerator.com/html_tables. At least this way it relieves the necessity of writing everything yourself. 

I did notice in testing that once I placed a table in one article I could copy and paste it into the regular view of another article. If you have table formats that you use repeatedly this could save even more time. 

Hope this helps - please let us know if you have more questions!

Translate
Nov 27, 2013 6:24 PM UTC

Thanks for the quick reply.  I also had some success experimenting copying a table directly into a Zendesk article from Word (which is where our help articles currently live).  Depending on whether the content already exists, we might do a combination of Word and the html generator until the upgrade.

Translate
Employee
Nov 27, 2013 6:48 PM UTC

That's good to know about Word - hope all of the article creating goes well!

Translate
Mar 3, 2014 3:30 PM UTC

Voting for this - we need tables in our KB docs. We need to be able to create and edit these easily. Word tables don't appear to maintain column width when they are pasted into a Help Centre article. Please let us know when we can expect these features to be working efficiently.

Thanks

Translate
Employee
Mar 3, 2014 5:53 PM UTC

Hi Jackie, 

Thanks for the feedback, we're continuing to improve the editor but there aren't any dates for specific improvements at this time. I'm not sure what plans the Product team has for improvements regarding copying and pasting content from Word; since the program includes it's own non-HTML formatting with copied text there's some extra complexity in the operation. That said, there have been some improvements since this question was last answered, I'll make a note of them in case anyone is curious.

There's now an "Insert table" button in the article editor that allows you set basic table properties. Also, "Display unsafe content" (in the General settings) no longer needs to be enabled to have tables show in Help Center:

Translate
Sep 29, 2014 9:10 PM UTC

Can you explain what the "Style" option is on the Advanced table options? And how to set it. I can't find documentation on this. Thanks!

Translate
Employee
Oct 10, 2014 8:13 PM UTC

Hi Sue! Sorry for the delayed response!

The Style field is where you can add some CSS code snippets to customize the table. You can change the background color and things of that nature.

Hope that helps!

Translate