In earlier versions of CKEditor, it set the height and width of a resized image as style properties. However, in later versions of CKEditor, it instead sets element attributes instead. As a result, any content created with the earlier version of CKEditor will run into issues in the newer versions of CKEditor.
Steps to reproduce (in Liferay)
Navigate to the screen to create a new web content
Access the WYSIWYG editor and upload an image to the document library and add it to the content
Switch to the source view and add the style="height:100px; width:100px" attribute to the img tag to simulate content created in earlier versions of Liferay
Publish the web content
Edit the web content that you created
Attempt to resize the image using either the dragresizer or by double-clicking on the image to load Image Properties
Expected behavior is that reloading the content in WYSIWYG view will result in an image that can be resized. Actual behavior is that the inline styling makes it impossible to resize the image.
https://issues.liferay.com/browse/LPS-139565
Problem overview
In earlier versions of CKEditor, it set the height and width of a resized image as style properties. However, in later versions of CKEditor, it instead sets element attributes instead. As a result, any content created with the earlier version of CKEditor will run into issues in the newer versions of CKEditor.
Steps to reproduce (in Liferay)
style="height:100px; width:100px"
attribute to theimg
tag to simulate content created in earlier versions of LiferayExpected behavior is that reloading the content in WYSIWYG view will result in an image that can be resized. Actual behavior is that the inline styling makes it impossible to resize the image.