-
Bug
-
Resolution: Fixed
-
Major
-
2.4.2
-
MOODLE_24_STABLE
-
MOODLE_25_STABLE
-
MDL-38426_dnd_plain_text -
Dropping plain text with line breaks isn't handled correctly by mod/label: the line breaks disappear. Davo suggests that the fix is:
"The correct fix is going to be similar to the code in mod/page/lib.php, page_dndupload_handle:
if ($uploadinfo->type == 'text/html') {
|
$data->contentformat = FORMAT_HTML; $data->content = clean_param($uploadinfo->content, PARAM_CLEANHTML);
|
}
|
else {
|
$data->contentformat = FORMAT_PLAIN; $data->content = clean_param($uploadinfo->content, PARAM_TEXT);
|
}
|
"