Merge branch 'MDL-32316_21_wip' of git://github.com/grabs/moodle into MOODLE_21_STABLE
This commit is contained in:
@@ -29,7 +29,7 @@ class feedback_label_form extends feedback_item_form {
|
||||
|
||||
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
|
||||
$mform->addElement('editor', 'presentation_editor', '', null, $presentationoptions);
|
||||
$mform->setType('presentation_editor', PARAM_CLEANHTML);
|
||||
$mform->setType('presentation_editor', PARAM_RAW);
|
||||
|
||||
parent::definition();
|
||||
$this->set_data($item);
|
||||
|
||||
@@ -135,7 +135,9 @@ class feedback_item_label extends feedback_item_base {
|
||||
$item->presentationtrust = 1;
|
||||
|
||||
$output = file_rewrite_pluginfile_urls($item->presentation, 'pluginfile.php', $context->id, 'mod_feedback', $filearea, $item->id);
|
||||
echo format_text($output, FORMAT_HTML, array('overflowdiv'=>true));
|
||||
|
||||
$formatoptions = array('overflowdiv'=>true, 'trusted'=>$CFG->enabletrusttext);
|
||||
echo format_text($output, FORMAT_HTML, $formatoptions);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user