Example #1
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setWysiwyg(true);
     $config['document_base_url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
     $config['store_id'] = Mage::app()->getStore()->getId();
     $config['add_variables'] = true;
     $config['add_widgets'] = true;
     $config['add_directives'] = true;
     $config['use_container'] = true;
     $config['container_class'] = 'hor-scroll';
     if (Mage::app()->getRequest()->getParam('isAjax') == 'true') {
         $this->setForceLoad(true);
     }
     $this->setConfig(Mage::getSingleton('cms/wysiwyg_config')->getConfig($config));
     $this->getConfig()->addData(array('reducedButtons' => 'true'));
 }