/** * Retrieve additional html and put it at the end of element html * * @access public * @return string * @author Ultimate Module Creator */ public function getAfterElementHtml() { $html = parent::getAfterElementHtml(); $disabled = $this->getDisabled() || $this->getReadonly(); $html .= Mage::getSingleton('core/layout')->createBlock('adminhtml/widget_button', '', array('label' => Mage::helper('catalog')->__('WYSIWYG Editor'), 'type' => 'button', 'disabled' => $disabled, 'class' => $disabled ? 'disabled btn-wysiwyg' : 'btn-wysiwyg', 'onclick' => 'catalogWysiwygEditor.open(\'' . Mage::helper('adminhtml')->getUrl('*/*/wysiwyg') . '\', \'' . $this->getHtmlId() . '\')'))->toHtml(); return $html; }
public function getAfterElementHtml() { $html = parent::getAfterElementHtml(); if ($this->isWysiwygAllowed()) { $html .= Mage::getSingleton('core/layout')->createBlock('adminhtml/widget_button', '', array('label' => Mage::helper('catalog')->__('WYSIWYG Editor'), 'type' => 'button', 'disabled' => false, 'class' => '', 'onclick' => 'uVendorWysiwygEditor.open(\'' . Mage::helper('adminhtml')->getUrl('*/*/wysiwyg') . '\', \'' . $this->getHtmlId() . '\')'))->toHtml(); } return $html; }
public function getAfterElementHtml() { $html = Varien_Data_Form_Element_Textarea::getAfterElementHtml(); if ($this->getIsWysiwygEnabled()) { $disabled = $this->getDisabled() || $this->getReadonly(); $html .= Mage::getSingleton('core/layout')->createBlock('adminhtml/widget_button', '', array('label' => Mage::helper('catalog')->__('WYSIWYG Editor'), 'type' => 'button', 'disabled' => $disabled, 'class' => $disabled ? 'disabled' : '', 'onclick' => 'catalogWysiwygEditor.open(\'' . Mage::helper('adminhtml')->getUrl('customgrid/custom_grid_editor_product/wysiwyg') . '\', \'' . $this->getHtmlId() . '\')'))->toHtml(); } return $html; }
/** * Retrieve additional html and put it at the end of element html * * @return string */ public function getAfterElementHtml() { $html = parent::getAfterElementHtml(); if ($this->getIsWysiwygEnabled()) { $disabled = $this->getDisabled() || $this->getReadonly(); $html .= Mage::getSingleton('Mage_Core_Model_Layout')->createBlock('Mage_Adminhtml_Block_Widget_Button', '', array('label' => Mage::helper('Mage_Catalog_Helper_Data')->__('WYSIWYG Editor'), 'type' => 'button', 'disabled' => $disabled, 'class' => $disabled ? 'disabled' : '', 'onclick' => 'catalogWysiwygEditor.open(\'' . Mage::helper('Mage_Adminhtml_Helper_Data')->getUrl('*/*/wysiwyg') . '\', \'' . $this->getHtmlId() . '\')'))->toHtml(); } return $html; }
/** * Retrieve additional html and put it at the end of element html * * @return string */ public function getAfterElementHtml() { $this->jsHelper()->setConfig('url.wysiwyg', $this->urlTemplateHelper()->encodeAttribute($this->createUrl()->getUrl('adminhtml/mana/wysiwyg', array('element_id' => '__0__', 'store_id' => $this->adminHelper()->getStore()->getId())))); $html = parent::getAfterElementHtml(); if ($this->getIsWysiwygEnabled()) { $disabled = $this->getDisabled() || $this->getReadonly(); $html .= Mage::getSingleton('core/layout')->createBlock('adminhtml/widget_button', '', array('label' => Mage::helper('catalog')->__('WYSIWYG Editor'), 'type' => 'button', 'disabled' => $disabled, 'class' => $disabled ? 'disabled' : ''))->toHtml(); } return $html; }