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