Recent searches


No recent searches

Editing content blocks



image avatar

Elizabeth Williams

Zendesk Documentation Team

Edited Oct 09, 2024


0

8

8 comments

Do content blocks not support the <span> element? I keep trying to add one and it gets turned into a <p> element. If not, please add support for this as it can be helpful for custom CSS.

2


image avatar

Darenne

Zendesk Customer Care

Hi Kate, 

I hope you're doing great! I have confirmed with one of our project managers that content blocks are not supported <span> at the moment and this is not yet in the roadmap. We recommend that you file this as a feature request via this link. Your comment will be routed to our Dev and Product managers and they will check if they can consider this feature for future use. 
 
Thank you so much and have a lovely day! 

0


Hi Zendesk team - you say:

If you are editing the content block HTML source, be aware that the content block editor removes class and id attributes from the HTML source of content blocks, with the following exceptions:

  • Top-level div tags can use the class attribute.
  • Heading tags, such as h1 and h2, can use the id attribute. If you don't specify an id, Zendesk automatically assigns one to headings. Content blocks don't support h5 or h6 headings.

Why do you remove `class` attributes? It's the one attribute I add manually to text for formatting purposes, to create shaded backgrounds behind text. 
I can now add colour backgrounds to content blocks but they don't look the same. 
What's the rationale?

0


Hey Zendesk,
The removal of classes means that although the Content Block editor allows text formatting within Tables, these are removed when you publish or save. So you can't center text in a table due to the way the classes get removed. This doesn't make sense as users should be able to format content within tables

0


Is there a way to edit without publishing the changes right away, just like a regular article?

0


image avatar

Shawna James

Community Product Feedback Specialist

Hey Hamish, thank you so much for taking the time to provide us with your feedback here. I wanted to point you in the direction of our product feedback forum for Guide where we collect product feedback and where our PM’s review feedback from our customers. We would greatly appreciate you using this forum to share your feedback with us for better visibility. Here is our product feedback template to get you started. Thank you!

0


Is revision control supported in any way for Content Blocks? I can't seem to find any way to view revisions for a Content Block, but it feels like the way that revisions are accessed for articles has changed several times recently, and it's currently somewhere very silly (the right-most level of the right-side vertical navigation frame). I do not see anything comparable in the interface view for Content Blocks.

 

If revisions aren't supported for Content Blocks then that seems like a major oversight and problem. Revision control is a critical part of information management for any type of documentation content!

1


Hi, I updated a content block and upon saving, every single article that contained it is now showing that as an actual edit/revision was made. Can you confirm if this behavior is new?

This was puzzling to try and figure out why so many articles suddenly appeared “edited"/changes published this morning, but they weren't actually article changes - they were just all articles that had the one content block. This might affect our tracking of “articles edited” and "changes published” stats, because a tiny edit to one word of a re-used content block is not a real “edited article”. 

If someone could just confirm how the behavior currently works as of September 2024 that would be helpful to understand and plan around if necessary. Thanks!

0


Please sign in to leave a comment.