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/tinymce.js.php?course=$courseid&editorlanguage=$editorlanguage"; $configured['tinymce'] = true; 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]; } } ?>