Styling <ac:image> element

confluence-cloud

#1

Hi,

I’ve created Static Content Macro which renders an image attachment of a page.

Macro returns a response in Confluence Storage Format, but I struggle with styling of <ac:image> element. According to docs one can use ac:style attribute on that element to include css style, but it does nothing - style is not applied to the image.

I tried to attach style element to Handlebars view to change style of a rendered element afterwards, but also without success - style element is not rendered in a page.

Does anybody have an experience with this please?

Many thanks in advance,

Jiri


#2

The documentation on that has been wrong for years: https://jira.atlassian.com/browse/CONFSERVER-38676

Also: https://ecosystem.atlassian.net/browse/CE-118


#3

Aah, that’s bad news :frowning:

So it looks the only way is an iframe in Dynamic Content Macro.

Anyway, thanks Jason.

Jiri