Magento 2 – How to add WYSIWYG editor in admin configuration options?

Magewallet | Magento 2 Extensions, Themes & Solutions

Magento 2 – How to add WYSIWYG editor in admin configuration options?

In this blog post, we learn how to add WYSIWYG editor with textarea in admin system configuration options.

First we will add one system config field in system.xml file. Use below code to add new field with the type Editor.

In order display WYSIWYG editor with this textarea we need one frontend block. so you can create editor.php file at below location.

In this block you can write below code snippet.

Now please clear cache file and then go to module system configuration, you will get textarea with WYSIWYG option.

That’s it. Enjoy Magento 2! Enjoy Magewallet!!

admin

2 Comments

Yuri Boyka

34 mins ago

work perfectly for me.... Thank you very much for this.

JC

34 mins ago

It works! thanks! I have been struggling for hours with this. Thanks!

Leave Comment

Newsletter

Latest Tweets