Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I return HTML with grid lines from tables using the content API?

The HTML that returns when consuming the content API does not contain the grid lines that are shown within confluence. I have attempted passing these under "body" with no luck:

view, export_view, styled_view, storage, editor2, anonymous_export_view

Is there a different API I consume or pass different attributes to yield the desired result?

1 answer

1 accepted

1 vote
Answer accepted

The styled_view will return the style information that is creating the borders on the HTML table.

There will be something like

.confluenceTd {
border: 1px solid #ddd;
padding: 7px 10px; /* CONFDEV-13618: line-height will add up 3 pixels, so we have a 10px top padding for text. Images will remain with 7px top margin though (see thread in Stash) */
vertical-align: top;
text-align: left;
min-width: 8px; /* CONF-39943: set table cell min-width to which cursor can be focused */

that comes back in the top style portion of the returned value.

Thank you Rodney. It appears that instead of -- border: 1px solid #ddd; in our application we are seeing -- border:1px solid @adg-N50-karl. Since our application does not have the Atlassian color palette, it is causing it to not show. 

Appreciate the help!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

67 views 4 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you