Ejemplo n.º 1
0
function html_editor($textareaname)
{
    if (preg_match("/(MSIE)/i", $_SERVER['HTTP_USER_AGENT'])) {
        init_editor($textareaname);
    } else {
        xoopsCodeTarea($textareaname);
        xoopsSmilies($textareaname);
    }
}
Ejemplo n.º 2
0
 /**
  * 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);
 }