MDL-19500 improved editor embedding

This commit is contained in:
skodak
2009-06-14 21:35:07 +00:00
parent cab8690d4b
commit 13a220cfb8
7 changed files with 15 additions and 25 deletions
-13
View File
@@ -62,16 +62,3 @@ if (!empty($focus)) {
?>
//]]>
</script>
<?php
// editors integrations
//TODO: optimize loading of editors
if (empty($CFG->texteditors)) {
$CFG->texteditors = 'tinymce,textarea';
}
$activeeditors = explode(',', $CFG->texteditors);
foreach ($activeeditors as $editor) {
if ($editor = get_texteditor($editor)) {
echo $editor->header_js();
}
}
?>