I have a Custom UI Forge macro that exports an base64 encoded image to Word. In PDF export, the macro is working fine. But when I export to Word, I have this error:
<img src=3D"https://<instance>.atlassian.net/wiki/plugins/servle=
t/confluence/placeholder/error?i18nKey=3Deditor.placeholder.broken.image&am=
p;locale=3Den_US&version=3D2" title=3D"Missing required attribute: {htt=
p://atlassian.com/resource/identifier}value" class=3D"transform-error" data=
encodedxml=3D"%3Cac%3Aimage+ac%3Aalign%3D%22center%22+ac%3Alayout%3D%22ce=
nter%22+ac%3Asrc%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgA=
AAtAAAAKUCAYAAAAtng%2FmAAAAAXNSR0IArs4c6QAAIABJREFUeF7snQvUb1O5%2F6dLEipyyS=
And this is the export function
return doc(
mediaSingle({ layout: 'center' })({
type: 'media',
attrs: {
type: 'external',
url: `data:image/png;base64,${imageBase64String}`,
},
}),
);