htmleditor) or (!$CFG->htmleditor)) { return; } if ($editor == '') { $editor = (isset($CFG->defaulthtmleditor) ? $CFG->defaulthtmleditor : ''); } if (isset($configured[$editor])) { return $configured[$editor]; } $configuration = array(); switch ($editor) { case 'tinymce': $editorlanguage = current_language(); $configuration[] = $CFG->httpswwwroot ."/lib/editor/tinymce/jscripts/tiny_mce/tiny_mce.js"; //$configuration[] = $CFG->httpswwwroot ."/lib/editor/tinymce/jscripts/tiny_mce/tiny_mce_src.js"; $configuration[] = $CFG->httpswwwroot ."/lib/editor/tinymce.js.php?course=$courseid&editorlanguage=$editorlanguage"; $configured['tinymce'] = true; break; case 'fckeditor': $configuration[] = $CFG->httpswwwroot ."/lib/editor/fckeditor/fckeditor.js"; $configuration[] = $CFG->httpswwwroot ."/lib/editor/fckeditor.js.php?course=". $courseid; $configured['fckeditor'] = true; 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: $configured[$editor] = false; break; } if (isset($CFG->editorsrc) && is_array($CFG->editorsrc)) { $CFG->editorsrc = $configuration + $CFG->editorsrc; } else { $CFG->editorsrc = $configuration; } return $configured[$editor]; } } ?>