Skip to content
Snippets Groups Projects
Commit 14ffd504 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#16434_change_ckeditor_id' into 'hotline_6.52'

Hotline#16434 change ckeditor

See merge request !411
parents 16363122 572ef04a
Branches
Tags
3 merge requests!529Hotline 6.56,!425Dev#16320 loire forez skin,!421Hotline 6.52
- ticket #16434: Prefix l'identifiant css des zones d'edition utilisant CKEditor avec 'cke-'. Ceci évite les conflits CSS avec les skins personnalisés.
25/09/2014 - v6.52.6
- ticket #16434: Correction d'un bug dans la génération des flux RSS lorsque le titre contient des balises HTML ou des caractères spéciaux (<, &, ...)
- ticket #16463: Correction d'un bug dans la génération des flux RSS lorsque le titre contient des balises HTML ou des caractères spéciaux (<, &, ...)
- ticket #16319: la boîte bibliothèque numérique affiche les albums dans l'ordre des titres
......
......@@ -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('"', '&quot;', $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);
......
......@@ -87,7 +87,6 @@ class ZendAfi_View_Helper_CkEditor extends ZendAfi_View_Helper_BaseHelper
$oCKeditor = new CKeditor(CKBASEURL);
$oCKeditor->textareaAttributes['id'] = $editorId;
$oCKeditor->returnOutput = true;
return $oCKeditor->editor($editorId, $initial, $config);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment