Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.1.X, 7.2.X, 7.3.X, Master
-
7.3.x, 7.2.x, 7.1.x
-
Committed
-
3
-
Code Upgrade
Description
Issue
When upgrading from 6.2 to 7.1, image width/height in web content is lost
Steps to reproduce
- Start a clean 6.2 bundle with the following property
editor.wysiwyg.default=ckeditor editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor
- Upload an image into Documents and Media
- Create a new web content that displays the uploaded image
- In the image properties, specify a width and a height
- Switch to source mode
- Check how the width and height are stored
→The values are set as inline css - Upgrade to 7.1
- Edit the web content and access the image properties popup
Actual results
The width/height fields are empty
Expected results
The width/height fields remain the same
Note
Looks like there is a behavior change on how the width/height is stored in code:
6.2.x-ee (5d3633fa3cab4bad6c340987f099c6c246cf1de1) → The values are set as inline css
<img alt="" src="..." style="height: 100px; width: 100px;" />
7.1.x-private (c920473787354ba87a80e75159550bdba48f0fbf) → The values are set as img tag width/height attributes
<img alt="" data-fileentryid="33227" height="100" src="..." style="margin: 0px;" width="100" />
Note2
If this behavior change is intended, and upgrade step to change inline css to img tag attributes is required.
* Please see Zendesk Support tab for further comments and attachments.