Create
cancel
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

using rest api to update table in a page, background color cell does not work anymore

Hi

I was able to change background color of TD of a table in legacy pages, but not in new pages (the new style), it seems confluence strips the style of a TD when after I submit it through rest api 

 

any help?

 

thanks

1 answer

We're on the same page here.

I read somewhere about that you need to iterate throughout the HTML of it, and make changes there.

<p>Testing page</p><table class=\"wrapped\"> <colgroup> <col /><col /><col /></colgroup> <tbody> <tr> <th>Header 1</th> <th>Header 2</th> <th>Header 3</th> </tr> <tr><td class=\"highlight-grey\" data-highlight-colour=\"grey\"> <span style=\"color: rgb(255,255,255);\"> Row 1A </span></td> <td class=\"highlight-red\" data-highlight-colour=\"red\">Row 1B</td><td class=\"highlight-green\" data-highlight-colour=\"green\">Row 1C</td></tr> </tbody></table> <p class=\"auto-cursor-target\"> <br /></p>

 

But still haven't got there, if you manage to do something about it, let me know, maybe together we can achieve something.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

150 views 4 8
Read article

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