diff --git a/lib/editorlib.php b/lib/editorlib.php index 645073ca58a..fbafa1a5a47 100644 --- a/lib/editorlib.php +++ b/lib/editorlib.php @@ -33,7 +33,12 @@ defined('MOODLE_INTERNAL') || die(); * @return texteditor object */ function editors_get_preferred_editor($format = NULL) { - global $USER; + global $USER, $CFG; + + if (!empty($CFG->adminsetuppending)) { + // Must not use other editors before install completed! + return get_texteditor('textarea'); + } $enabled = editors_get_enabled();