setName('insbull'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_BULLET_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() . "'],'\\&bull\\;','')"); } else { $this->setOnClickEvent("wrapSelection(document.forms['serendipityEntry']['" . $this->getTextarea() . "'],'\\&\\#8226\\;','')"); } } else { $this->addClass('wrap_selection'); $this->setOpenTag('•'); } return parent::render(); } }