Text is Pushed onto a New Line After an Image
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The View File macros are going away in a future release
Read more about this change or find out about a better way to insert Office and PDF files.
Problem
Text after an image is always pushed onto a new line after the image, even though in edit mode the text is displayed correctly.
image and text in edit mode

image and text in preview/view mode

Diagnosis
Environment
Confluence Server
Diagnostic Steps
Go to Administration > Add-Ons
Select System from the dropdown
Search for
confluence-view-file-macro
Confirm Add-on is deactivated
Cause
The confluence-view-file-macro
includes CSS which overrides the regular CSS for attached images. Specifically a display: block
.
Solution
Resolution
You will need to re-activate the confluence-view-file-macro
Go to Administration > Add-Ons
Select System from the dropdown
Search for
confluence-view-file-macro
Click Enable
Was this helpful?