I have integrated WYSIWYG Editor using this tutorial. I can see it in my custom module, but when I try to insert variable it gives me following error in console

Error: ReferenceError: widgetTools is not defined
Source File: http://mywebsite.com/js/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js
Line: 44


There is also another error when I try to insert widget,

Error: ReferenceError: widgetTools is not defined
Source File: http://mywebsite.com/js/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js
Line: 44


Could anyone pls guide me on how to integrate WYSIWYG editor in backend custom module as well as frontend without having console errors.

Also how to add necessary WYSIWYG (TinyMCE) JS files to insert widgets, variables, images and other media types ?

Thanks.


Question: Travelling with electric violin under revised airport security rules
Answer: I asked my friends on Facebook too and got several recommendations for miniature amplifiers like the Roland Micro Cube



the irig (though I don't use an iPhone)



or the Amplug



but then one friend pointed out that headphones suffice to demonstrate the difference between the electric violin turned off and the electric violin turned on and many of us travel with headphones in our hand luggage anyway.

Next time I'll take the electric violin again and keep some simple headphones to-hand when going through airport security.