htmleditor) { return; } if ($editor == '') { $editor = (isset($CFG->defaulthtmleditor) ? $CFG->defaulthtmleditor : ''); } $configuration = ''; switch ($editor) { case 'tinymce': if (!isset($configured['tinymce'])) { $configuration = << EOF; $configured['tinymce'] = true; } break; case 'fckeditor': $configuration = << EOF; break; case 'xinha': $configuration = << _editor_url = "{$CFG->wwwroot}/lib/editor/xinha/" _editor_lang = "en"; _editor_skin = "blue-look"; EOF; break; case 'yuirte': $configuration = << EOF; break; default: break; } return $configuration; } } ?>