You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi,
I know that there are 'view' and 'styled_view' in API to get my article. I try to insert article from Confluence to the website page, but using API I am getting only text, without proper CSS. I want to get original CSS, like it was in Confluence. How can I do this? Please, help
Hello @zhanibek ,
Yes, you can add the '?expand=body.styled_view' to the URI of the HTTP request to Confluence Cloud and get the whole HTML with HEAD/BODY elements in the content body REST API response:
https://<site>.atlassian.net/wiki/rest/api/content/<ID>?expand=body.styled_view
In such a case there will be a big amount of text data to parse :)
Hello,
Thank you for your response.
I am currently using 'styled_view,' but when I check the text data, I see styles like this: "#footer .footer-body { color: @Aui-footer-body-text-color; "
As you can see, it uses some styles and variables that I do not have in my app. Where can I get these styles?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.