I followed this blog to add WYSIWYG editor (TinyMCE) in my custom Admin Magento Module. I can see it in my backend, but the issue is when I click on
Insert Variable or
Insert Widget, it shows me JS error in my Error Console.
Could someone shed some light on how to integrate WYSIWYG in backend as well as on frontend (ex: Contact Us Page) with the correct Magento approach.