Hello Magento Friends 👋,

Hope, everyone is doing good. In this article, I will be justifying, Magento 2: How to add WYSIWYG Editor in Admin Configuration. In case you missed to check out our previous blog, have a look. How To Get Last Executed Cron List Programmatically in Magento 2.

Introduction:

WYSIWYG stands for “What You See Is What You Get”. The content displayed in the WYSIWYG editor is exactly what will appear on the frontend. Using WYSIWYG editor exclude the need for HTML tags to design and edit page. You simply have to add the things and can be previewed how it will look after it’s launching.

Many times we need a powerful editor in system configuration for our extension. There comes the requirement of WYSIWYG editor in the admin configuration of Magento 2 since default Magento does not provide WYSIWYG editor in admin configuration.

To fulfill the above requirement, let’s get started to add WYSIWYG Editor in Admin Configuration of Magento 2 🚀

Steps to add WYSIWYG Editor in Admin Configuration of Magento 2:

Step 1: First you need to add system.xml in the following path:

 app\code\Vendor\Extension\etc\adminhtml\system.xml

 Now, add the below code:

 Step 2: Now you need to add Editor.php file in following path:

 app\code\Vendor\Extension\Block\Adminhtml\System\Config\Editor.php

Finally, add the below code:

That’s it!

Finally, WYSIWYG Editor is added to the Admin Configuration of your Magento 2 store.

WYSIWYG editor magento 2

Final Words:

Thereby, everyone is successful to add WYSIWYG editor in the admin configuration of Magento 2. You can also add a WYSIWYG editor from Magento 2 admin panel, How to Configure WYSIWYG Editor in Magento 2 (updated 2020).

If you face any difficulty while executing the code, notify me in the comment part below. Make sure to share the article with your Magento friends. Stay connected, stay updated!

Happy Coding 😊

Click to rate this post!
[Total: 5 Average: 4.8]