-
Bug
-
Resolution: Unresolved
-
Low
-
Severity 3 - Minor
-
Issue Summary
When calling the contentbody/convert/ endpoint on storage format inputs containing an inline image with ac:inline="true", this attribute is lost in conversion and images are then rendered at full size.
Steps to Reproduce
- Create a page with an inline image
- You should notice that when inspecting the HTML of the page, the image is wrapped in a span with the class media-inline-image-wrapper
- Grab the storage format representation of the page. This should contain an ac:image tag with the {{ac:inline="true" }}attribute.
- Make a call to sitename.atlassian.net/wiki/rest/api/contentbody/convert/{format} endpoint with any valid format: view, styled_view, export_view, editor
- In the response, look at the value tag and observe that the image representation no longer contains any attribute marking the image as inline.
Expected Results
If converting to styled_view, the HTML should wrap the image with a span with the class media-inline-image-wrapper
If converting to the other views, the image tag should contain the {{ac:inline="true" }}attribute
Actual Results
If converting to styled_view, the span with the class media-inline-image-wrapper is missing from the HTML
If converting to the other views, the image tag does not contain the {{ac:inline="true" }}attribute
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available