/** * @return string */ public function getDocsLinks() { $template = '<a target="_blank" href="%s">%s</a>'; $markdownLink = sprintf($template, $this->_helper->getCheatSheetUrl(), 'Markdown'); if (FALSE === $this->_helper->isMarkdownExtra()) { return $this->__('Content is parsed with %s', $markdownLink); } else { $markdownExtraLink = sprintf($template, $this->_helper->getMdExtraDocUrl(), 'Markdown Extra'); return $this->__('Content is parsed with %s and %s', $markdownLink, $markdownExtraLink); } }
/** * @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; }