Skip to content
Snippets Groups Projects

Hotline#16434 change ckeditor

Merged Ghost User requested to merge hotline#16434_change_ckeditor_id into hotline_6.52
Compare and
+ 7
4
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);