Skip to content
Snippets Groups Projects

Hotline 6.52

Merged Patrick Barroca requested to merge hotline_6.52 into master
Compare and
+ 355
164
Preferences
Compare changes
Files
@@ -131,6 +131,8 @@ class CKEditor
public function editor($name, $value = "", $config = array(), $events = array())
{
$attr = "";
$id = 'cke-' . $name;
$this->textareaAttributes['id'] = $id;
foreach ($this->textareaAttributes as $key => $val) {
$attr.= " " . $key . '="' . str_replace('"', '"', $val) . '"';
}
@@ -143,9 +145,9 @@ class CKEditor
$js = $this->returnGlobalEvents();
if (!empty($_config))
$js .= "CKEDITOR.replace('".$name."', ".$this->jsEncode($_config).");";
$js .= "CKEDITOR.replace('".$id."', ".$this->jsEncode($_config).");";
else
$js .= "CKEDITOR.replace('".$name."');";
$js .= "CKEDITOR.replace('".$id."');";
$out .= $this->script($js);