ACSD-65127: JavaScript minification in production mode causes TinyMCE 6 errors in the browser
The ACSD-65127 patch fixes the issue where enabling JavaScript minification in production mode caused TinyMCE 6 to generate errors in the browser console, affecting functionality and user experience. This patch is available when the Quality Patches Tool (QPT) 1.1.64 is installed. The patch ID is ACSD-65127. Please note that this issue was fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p4
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-p5
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
Enabling JavaScript minification in production mode caused TinyMCE 6 to generate errors in the browser console, affecting functionality and user experience.
Steps to reproduce:
- Set the configuration by running the below commands:
bin/magento config:set --lock-config dev/js/minify_files 1
bin/magento config:set --lock-config dev/js/enable_js_bundling 1
bin/magento config:set --lock-config dev/js/merge_files 1
- Enable production mode.
bin/magento deploy:mode:set production
- On the Admin sidebar, go to Catalog > Products. Click Edit on any listed product and scroll down to Content and select Show Editor.
Expected results:
No JS errors in the browser console.
Actual results:
404 errors in the browser console for the js tiny_mce_6/plugins/help/js/i18n/keynav/en.js.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.