ACP2E-4698: Page Builder Text inline editing saves absolute media URLs instead of the portable directive

The ACP2E-4698 patch fixes an issue where Page Builder Text inline editing can save absolute media image URLs after an image is edited again, instead of keeping the portable media url=... directive. This patch is available when the Quality Patches Tool (QPT) 1.1.82 is installed. The patch ID is ACP2E-4698. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.7-p9

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.7-p9 – 2.4.7-p10, 2.4.8-p4 – 2.4.8-p5
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Page Builder Text inline editing saves absolute media image URLs after editing an image again, instead of keeping the portable media url=... directive.

Prerequisites:

Page Builder is enabled.

Steps to reproduce:

  1. On the Admin sidebar, go to Content > Elements > Pages and open a CMS page in edit mode.

  2. Expand the Content section and edit a Text content type.

    1. In the editor toolbar, click the Insert Image icon.
    2. Select an image from the Media Gallery.
    3. Save the CMS page.
    4. Inspect the stored HTML for the edited page:
      The image src attribute uses a media url=... directive. This is the correct behavior.
  3. Edit the same CMS page again.

    1. In the Content section, edit the same Text content type.
    2. Select the existing image in the inline editor and reopen the Insert/edit image dialog.
    3. Change the image width or height under Dimensions, click Save, and then save the CMS page.
    4. Inspect the stored HTML again:
      The image src attribute is replaced with a fully qualified Admin media URL, such as https://example.com/media/.renditions/wysiwyg/.../image.png. The media directive is lost, and the URL becomes static.

Expected results:

The stored HTML should retain the portable media url=... directive in the image src attribute after the image is edited and the CMS page is saved again.

Actual results:

After the image is edited in Page Builder Text inline editing and the CMS page is saved again, the stored HTML replaces the media url=... directive with a hard-coded absolute URL.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools