Installing Extensions/Widgets Using Advanced Template


Okay I’ve found an issue with the advanced template and using composer to install an extension. For example I just attempted to install a Redactor extension: /vova07/yii2-imperavi-widget in the advanced template and tried to use it in a backend view and was consistently getting the following error:

[Error] TypeError: undefined is not a function (evaluating ‘jQuery("#event-description").redactor’)

(anonymous function) (create, line 312)

fire (jquery.js, line 3073)

fireWith (jquery.js, line 3185)

ready (jquery.js, line 3391)

completed (jquery.js, line 3407)

So then I created a basic app and, using composer, was able to install and SUCCESSFULLY use the redactor extension widget.

So my question is: Do I need to do anything different with an advanced app to install extensions?


Okay just tried to use the widget on a FRONTEND view of my advanced template and it worked fine. So something is either broken in the composer process or there’s an extra step I need to take to get the components to work in a BACKEND view.

Any ideas?