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

Blogs autosave won't update temporary image IDs

    Details

      Description

      Usually, when an image is dropped in the content editor in Blogs, it is uploaded as a temporarly image. After that, when autosave is executed, this has to be replaced by a definitive image, so the src of the image must be updated, and also all the attributes that came from the server.

      For the case of Adaptive Media, this are the steps to reproduce the issue:

      1. Start portal and deploy Adaptive Media.
      2. Go to blogs and create a new entry
      3. Drop an image in the content editor.
      4. Inspect the image or view the source code, and assert that it has an absolute url in the "src" attribute, and a attribute called "data-image-id".
      5. Wait until autosave is executed (30 seconds since the editor was modified)
      6. Inspect again the src attribute, it must have changed. And also, attribute "data-image-id" has been removed and a new one "data-fileentryId" is present.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 49 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP16
                7.0.3 CE GA4
                7.0.0 DXP SP4
                7.0.X EE
                7.1.X
                Master