Skip to content
Snippets Groups Projects
Commit 3f0ed4f4 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Fix to issue #1328: suppress warning when default text editor is the plain textarea.

parent 43419666
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,6 @@ class qtype_stack_edit_form extends question_edit_form {
protected function definition_inner(/* MoodleQuickForm */ $mform) {
global $OUTPUT;
global $USER;
// Load the configuration.
$this->stackconfig = stack_utils::get_config();
......@@ -195,7 +194,7 @@ class qtype_stack_edit_form extends question_edit_form {
// TO-DO: add in warnings here. See b764b39675 for deleted materials.
$warnings = '';
if (get_user_preferences('htmleditor', '', $USER) !== 'textarea') {
if (get_class(editors_get_preferred_editor()) !== 'textarea_texteditor') {
$warnings = '<i class="icon fa fa-exclamation-circle text-danger fa-fw"></i>' . stack_string('usetextarea');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment