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.