Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-141187

A page's custom CSS overrides CKEditor's specific width and height adjustments for images

    Details

    • Fix Priority:
      3

      Description

      Issue
      Custom CSS overrides CKEditor's specific width and height adjustments for images

      Steps to Reproduce
      1. Change portal-ext.properties to include the following

      editor.wysiwyg.default=ckeditor
      editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor

      2. create a web content

      3. Click on the image icon, and upload an image

      4. Double click the image to set the height and width properties. Set properties in such a way so that you can see the difference between original image and now resized image. eg: if original image is 500x500 then set height and width to be 100x100

      5. Create a content page called "Sample Page" and add Web Content Display to have the above created web content

      6. Verify that the image you will get is as per we have adjusted in CKEditor (100x100)

      7. Now edit the page's look and feel and insert custom CSS

      img{
      height:auto;
      width:auto;
      }
      

      Expected Behavior
      The page should show the image as per cofigured in CKEditor i.e. 100x100

      Actual
      The page is ignoring the width and height directive set by CKEditor, and is showing the image in its original dimensions (i.e. 500x500)

        Attachments

          Activity

            People

            Assignee:
            fortunato.maldonado Fortunato Maldonado
            Reporter:
            fortunato.maldonado Fortunato Maldonado
            Participants of an Issue:
            Recent user:
            Fortunato Maldonado
            Engineering Assignee:
            Fortunato Maldonado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              30 weeks, 1 day ago

                Packages

                Version Package