setName('insstrike'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_STRIKE_BUTTON); } /** * @return string */ public function render() { if ($this->isLegacyMode()) { $this->addClass('serendipityPrettyButton'); $this->addClass('input_button'); if ($this->isXhtml11()) { $this->setOnClickEvent( "wrapSelection(document.forms['serendipityEntry']['" . $this->getTextarea() . "'],'','')" ); } else { $this->setOnClickEvent( "wrapSelection(document.forms['serendipityEntry']['" . $this->getTextarea() . "'],'','')" ); } } else { $this->addClass('wrap_selection'); $this->addClass('lang-html'); $this->setOpenTag('p style=\'text-decoration: line-through;\''); $this->setCloseTag('p'); } return parent::render(); } }