Fix charset management with ace
This commit is contained in:
parent
687ccbfa10
commit
64c4f899f3
@ -121,7 +121,7 @@ class DolEditor
|
|||||||
$this->editor->Config['SkinPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/';
|
$this->editor->Config['SkinPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var_dump($content);exit;
|
||||||
// Define some properties
|
// Define some properties
|
||||||
if (in_array($this->tool,array('textarea','ckeditor','ace')))
|
if (in_array($this->tool,array('textarea','ckeditor','ace')))
|
||||||
{
|
{
|
||||||
@ -282,11 +282,10 @@ class DolEditor
|
|||||||
$out.= ($this->height?' height: '.$this->height.'px; ':'');
|
$out.= ($this->height?' height: '.$this->height.'px; ':'');
|
||||||
//$out.=" min-height: 100px;";
|
//$out.=" min-height: 100px;";
|
||||||
$out.= '">';
|
$out.= '">';
|
||||||
/*$out.= preg_replace(array('/^<\?php/','/\?>$/'), array('<?php','?>'), $this->content); */
|
$out.= htmlspecialchars($this->content);
|
||||||
$out.= htmlentities($this->content);
|
|
||||||
$out.= '</pre>';
|
$out.= '</pre>';
|
||||||
$out.= '<textarea id="'.$this->htmlname.'" name="'.$this->htmlname.'" style="width:0px; height: 0px; display: none;">';
|
$out.= '<textarea id="'.$this->htmlname.'" name="'.$this->htmlname.'" style="width:0px; height: 0px; display: none;">';
|
||||||
$out.= htmlentities($this->content);
|
$out.= htmlspecialchars($this->content);
|
||||||
$out.= '</textarea>';
|
$out.= '</textarea>';
|
||||||
|
|
||||||
$out.= '<script type="text/javascript" language="javascript">'."\n";
|
$out.= '<script type="text/javascript" language="javascript">'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user