mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-38426 mod_label - correctly handle plain text that has been added by drag and drop upload
This commit is contained in:
parent
8673a98d1d
commit
3d38777333
@ -264,6 +264,9 @@ function label_dndupload_handle($uploadinfo) {
|
||||
}
|
||||
} else if (!empty($uploadinfo->content)) {
|
||||
$data->intro = $uploadinfo->content;
|
||||
if ($uploadinfo->type != 'text/html') {
|
||||
$data->introformat = FORMAT_PLAIN;
|
||||
}
|
||||
}
|
||||
|
||||
return label_add_instance($data, null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user