function html_editor($textareaname) { if (preg_match("/(MSIE)/i", $_SERVER['HTTP_USER_AGENT'])) { init_editor($textareaname); } else { xoopsCodeTarea($textareaname); xoopsSmilies($textareaname); } }
/** * Renders an article. * * @return string (X)HTML. * * @global string The value of the <var>action</var> GP parameter. * @global Realblog_Controller The plugin controller. */ protected function renderArticle() { global $action, $_Realblog_controller; init_editor(array('realblog_headline_field', 'realblog_story_field')); return $this->form($_Realblog_controller->getPgParameter('realblogID'), $action); }