Return Javascript Data Into Ajax Data


I’ve a page which calls a js popup. The popup is generated by another controlled called via CHtml::ajax. It all works fine, except that in some cases I need a rich text editor inside the popup. This code is generated into the controller and returned to the call, but WITHOUT the needed JS inclusions and declarations.

Is it possible to have Yii return this data?