Step 1: Add the following function into the Extension Edit.php file i.e. (EWA_Testimonial_Block_Adminhtml_Testimonial).
protected function _prepareLayout() { // Load Wysiwyg on demand and Prepare layout if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled() && ($block = $this->getLayout()->getBlock('head'))) { $block->setCanLoadTinyMce(true); } parent::_prepareLayout(); }
Step 2: Now Add the following code in your Adminhtml Form class Form.php i.e. (EWA_Testimonial_Block_Adminhtml_Testimonial_Edit_Tab)
$fieldset->addField('description', 'editor', array( 'label' => Mage::helper('testimonial')->__('Testimonial Content'), 'title' => Mage::helper('testimonial')->__('Testimonial Content'), 'style' => 'width:600px; height:200px;', 'config' => Mage::getSingleton('cms/wysiwyg_config')->getConfig(), 'wysiwyg' => true, 'required' => true, 'name' => 'description', ));
Step 3: Now check the Form in admin panel it will look like as below:
Hope it helps, Keep reading.
Thanks