Skip to content

TinyMCE (WYSIWYG) doesn't work in admin when JS minify is enabled #11577

Closed
@jordy2607

Description

@jordy2607

Preconditions

  1. Magento 2.1.9 production mode

Steps to reproduce

  1. Enable js minify in Stores->Advanced->Developer
  2. Deploy static content
  3. Open an admin page with a textarea with TinyMCE editor enabled. For example a product edit page and open the content tab for the TinyMCE to load.

Expected result

  1. TinyMCE is loaded succesfully

Actual result

  1. TinyMCE is trying to load its dependencies but the url from which it is trying to retrieve these dependencies is incorrect. Which causes TinyMCE failing to load.
  2. Expected url: /static/adminhtml/Magento/backend/en_US/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
  3. Actual url: /storemanager/catalog/product/edit/id/324/key/fbd61981481baeb3aa25d2fbae2c1fc6e715ab6ea8806793343d4343f79fa0fd//plugins/inlinepopups/editor_plugin.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions