Magento 2 TinyMCE Editor Hide/Show Not Working – Fix

magento2tinymce

Here is the pic the showing the tinyMCE is not showing and the button is not work

enter image description here

The browser console does not have any exception or error is showing, anyone know what is the problem?

Remarks tested on (xampp+windows and nginx+php7)

Best Answer

this is a known Magento js bug, there is a fix for it but not deployed in the current version so you would need to patch Magento:

  1. the fix url is: https://github.com/magento/magento2/commit/3524943ac6544ee969480536ef6f0cd1a29b0b56.patch ( just the github issue sollution with .patch extension added ) save the content of the patch into a file ex: vendor_patches/MAGETWO-57675-Base.diff in the root of magento where vendor_patches is an directory created for patches

  2. and you can create a patch as follows: Add to your composer.json ( in the root of magento )

    {

    "require": {
        "cweagans/composer-patches": "~1.4.0",
    },
    
    "extra": {
        "patches": {
            ""magento/magento2-base": {
                "[PATCH] MAGETWO-57675: [GITHUB] WYSIWYG editor does not show. #6222": "vendor_patches/MAGETWO-57675-Base.diff"
            }
        }
    }
    

    }

  3. Run composer update in the root of your magento

Related Topic