setName('insend'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_ENDASH_BUTTON); } /** * @return string */ public function render() { if ($this->isLegacyMode()) { $this->addClass('serendipityPrettyButton'); $this->addClass('input_button'); if ($this->isUseNamedEnts()) { $this->setOnClickEvent("wrapSelection(document.forms['serendipityEntry']['" . $this->getTextarea() . "'],'\\&ndash\\;','')"); } else { $this->setOnClickEvent("wrapSelection(document.forms['serendipityEntry']['" . $this->getTextarea() . "'],'\\&\\#8211\\;','')"); } } else { $this->addClass('wrap_selection'); $this->setOpenTag('–'); } return parent::render(); } }