QUALITY PATCH

ACSD-65127: Enabling JavaScript minification in production mode caused TinyMCE 6 to generate errors…

Enabling JavaScript minification in production mode caused TinyMCE 6 to generate errors in the browser console, affecting functionality and user experience. Quality patch ACSD-65127 for magento/module-store applies to Magento Open Source and Adobe Commerce 2.4.4 to 2.4.7-p6.

Categories
Admin
Components
magento/module-store
Origin
adobe-commerce-support
Since QPT
1.1.64

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

1. 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 >[!NOTE] > >Adobe does not recommend enabling Merge JavaScript Files. See Merge JS files (not recommended). 1. Enable production mode. bin/magento deploy:mode:set production 1. On the Admin sidebar, go to Catalog > Products. Click Edit on any listed product and scroll down to Content and select Show Editor.

Adobe's page lists 2.4.4 - 2.4.7-p5 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-65127. On Cloud, add ACSD-65127 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-65127/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-store
Packages across compatible versions (1): magento/module-store

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.