1 (20%) 1 vote

In this topic we will show you How to Use WYSIWYG Editor in Configuration Section in Magento 2 through 2 steps

  • Step 1:Create your system.xml
  • Step 2:Now we create Editor class in file Editor.php

So you have a basic wysiwyg setup using the Wysiwyg module. Lets dive deeper into the configuration of your wysiwyg editor. WYSIWYG edito is an often requirement for Admin Module as it makes the content editing work much more easier. Here we learn how to use WYSIWYG editor in Magento2 configuration section

use WYSIWYG Editor
use WYSIWYG Editor

Step 1:

Create your system.xml in app/code/[Name_Space]/[Your_Module]/etc/adminhtml

Step 2:

Now we create Editor class in file Editor.php at app/code/[Name_Space]/[Your_Module]/Block/Adminhtml/System/Config folder where we create WYSIWYG editor element

There might be some issues when changing the config scope to a website or a store view. The textarea will not become ‘disabled’ but if you can ignore this, there would be no problem.

The steps I mention above is the shortest process for you to Use WYSIWYG Editor in Configuration Section in Magento 2. With this guide, you can manage the WYSIWYG Editor in Configuration Section easily. Every store has a  WYSIWYG Editor in Configuration Section in Magento 2 with many attributes.

Thank you for reading this post and see you in other posts from Magestore!

How to Use All Commands in Magento 2 CLI (Part 2)
How to Use All Commands in Magento 2 CLI - Part 3 Manage modules