Checked for summernote update and cleaned source code.

This commit is contained in:
Rooty 2021-03-31 16:26:07 +02:00
parent 4c4bb6995d
commit 36b9dc5580

View File

@ -81,15 +81,6 @@ var $string = null;
{
global $CONF_LIB_PATH;
// require_once($CONF_LIB_PATH."lib/package/wysi/summernote/summernotecode.php");
// require_once($CONF_LIB_PATH."lib/package/wysi/summernote/functions_post.php");
// if (strtolower($toolbar)=="default")
// $toolbar="Default";
//
// if (strtolower($toolbar)=="basic")
// $toolbar="Basic";
$this->name =$name;
$this->form =$form;
$this->lang =$lang;
@ -142,26 +133,6 @@ var $string = null;
$form =$this->form;
$lang =$this->lang;
$message =$this->string;
// $message=isset($_POST[$name])?$_POST[$name]:"";
/*
$html_on=1;
$summernotecode_on=1;
$smilies_on=1;
$summernotecode_uid = ( $summernotecode_on ) ? make_summernotecode_uid() : '';
$preview_message = stripslashes(prepare_message(addslashes(unprepare_message($message)), $html_on, $summernotecode_on, $smilies_on, $summernotecode_uid));
$preview_message = summernoteencode_second_pass($preview_message, $summernotecode_uid);
$preview_message = make_clickable($preview_message);
$preview_message = $preview_message;
$preview_message = str_replace("\n", '<br />', $preview_message);
if ($this->smile)
{
$preview_message=$this->ReplaceSmile($preview_message);
}
return $preview_message;*/
/* adjust include_path to include PEAR */
// ini_set('include_path', ini_get('include_path').':'.$GLOBALS["CONF_LIB_PATH"].'lib/PEAR');
/* require PEAR and the parser */
require_once('PEAR.php');
@ -181,7 +152,7 @@ var $string = null;
$parsed = $parser->getParsed();
$parsed = str_replace(chr(10), "<br/>", $parsed);
// $parsed = str_replace(" ", "&nbsp;", $parsed);
return $parsed;
}