MDL-42769 use only text area editor before install completed
This commit is contained in:
+6
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user