/** * @return $this */ protected function _getMarkdownButtons() { $htmlId = $this->_currentElement->getHtmlId(); if ($this->_helper->getDetectionTag() !== '') { $this->_afterElementHtml[200] = Mage::getSingleton('core/layout')->createBlock('adminhtml/widget_button', '', array('label' => $this->_helper->__('Markdown enable'), 'type' => 'button', 'class' => 'mdButton', 'onclick' => 'toggleMarkdown(\'' . $htmlId . '\');'))->toHtml(); } if ($this->_helper->isEpicEditorEnabled()) { $this->_afterElementHtml[500] = Mage::getSingleton('core/layout')->createBlock('adminhtml/widget_button', '', array('label' => $this->_helper->__('EpicEditor'), 'class' => 'mdButton', 'type' => 'button', 'onclick' => 'toggleEpicEditor(this,\'' . $htmlId . '\');'))->toHtml(); } if ($this->_helper->isReMarkedEnabled() === TRUE) { $this->_afterElementHtml[600] = Mage::getSingleton('core/layout')->createBlock('adminhtml/widget_button', '', array('label' => $this->_helper->__('Convert HTML to Markdown'), 'class' => 'mdButton', 'type' => 'button', 'onclick' => 'htmlToMarkDown(this,\'' . $htmlId . '\');'))->toHtml(); } return $this; }