Commit e3495bc1 authored by Nigel McNie's avatar Nigel McNie
Browse files

Return the tinymce line to initialise the configuration editor directly,...

Return the tinymce line to initialise the configuration editor directly, rather than making a script node for it. This works on ie (7 and 6) as well as the other browsers
parent eb01d1fc
......@@ -959,9 +959,7 @@ class View {
if (in_array('tinytinymce', $headers)) {
$js = <<<EOF
var script = createDOM('script', {'type': 'text/javascript'});
script.innerHTML = 'tinyMCE.execCommand("mceAddControl", true, "cb_{$values['id']}_{$key}");';
appendChildNodes(getFirstElementByTagAndClassName('head'), script);
tinyMCE.execCommand("mceAddControl", true, "cb_{$values['id']}_{$key}");
EOF;
}
}
......
Markdown is supported
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