magefan/module-wysiwyg-advanced

Extend TinyMCE 4 in Magento 2


Keywords
magefan, magefan-extension, magento, magento-2, magento-2-extension, magento-2-extension-free, magento-2-module, magento-extension, magento-extension-free, magento-module, magento-module-free, magento-plugin, magento2, magento2-extension, magento2-extension-free, magento2-free-extension, magento2-module, magento2-module-free, magento2-plugin
Licenses
OSL-3.0/AFL-3.0

Documentation

Better Magento 2 WYSIWYG TinyMCE4 & TinyMCE5 Editor by Magefan

Overview

Total Downloads Latest Stable Version

This extension allows you to extend TinyMCE 4 & 5 tools in Magento 2, e.g.: add text color, image, html code, undo-redo, styleselect, fontsizeselect, forecolor backcolor, bold, italic, underline, strikethrough, alignleft, aligncenter, alignright alignjustify, bullist, numlist, outdent, indent, table, image, code. Read more details...

Based on stackexchange answer by Mike Dubs.

TinyMCE 4 in Magento 2

Installation

composer require magefan/module-wysiwyg-advanced
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

Enabling emoji 😋

  1. Change "utf8" to "utf8mb4" for initStatements in app/etc/env.php file. Example:
'db' => [
        'table_prefix' => '',
        'connection' => [
            'default' => [
...
                'initStatements' => 'SET NAMES utf8mb4;',
...
            ]
        ]
    ],
  1. Alter database tables and set utf8mb4 encoding. Run SQL queries:
# For blog posts
ALTER TABLE magefan_blog_post CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
# For blog categories
ALTER TABLE magefan_blog_category CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
# For blog tags
ALTER TABLE magefan_blog_tag CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
# For products
ALTER TABLE catalog_product_entity_varchar CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
ALTER TABLE catalog_product_entity_text CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
# For categories
ALTER TABLE catalog_category_entity_varchar CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
ALTER TABLE catalog_category_entity_text CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;

Magento 2 Extensions by Magefan

Magento 2 Admin Panel Extensions

Magento 2 Blog Extensions

Magento 2 SEO Extensions

Magento 2 Cart Extensions

Magento 2 Speed Optimization Extensions

Magento 2 Multi-Language Extensions

Magento 2 Point of Sale

Shopware Extensions

Shopify Apps

Magento 2 Theme