fixed a lot more wrong html cleanings

This commit is contained in:
Petr Skoda
2010-07-25 09:35:39 +00:00
parent bfc638bb16
commit b8f8bbc81b
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -276,7 +276,7 @@ class lesson_add_page_form_branchtable extends lesson_add_page_form_base {
$this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes);
$mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions);
$mform->setType('contents_editor', PARAM_CLEANHTML);
$mform->setType('contents_editor', PARAM_RAW);
$mform->addElement('checkbox', 'layout', null, get_string("arrangebuttonshorizontally", "lesson"));
$mform->setDefault('layout', true);
@@ -287,7 +287,7 @@ class lesson_add_page_form_branchtable extends lesson_add_page_form_base {
for ($i = 0; $i < $lesson->maxanswers; $i++) {
$mform->addElement('header', 'headeranswer'.$i, get_string('branch', 'lesson').' '.($i+1));
$mform->addElement('textarea', 'answer['.$i.']', get_string("description", "lesson"), array('rows'=>10, 'cols'=>70, 'width'=>630, 'height'=>300));
$mform->setType('answer['.$i.']', PARAM_CLEANHTML);
$mform->setType('answer['.$i.']', PARAM_RAW);
if ($i == 0) {
// we should have one required branch
$mform->addRule('answer['.$i.']', null, 'required', null, 'server');
+1 -1
View File
@@ -113,7 +113,7 @@ class lesson_add_page_form_cluster extends lesson_add_page_form_base {
$this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes);
$mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions);
$mform->setType('contents_editor', PARAM_CLEANHTML);
$mform->setType('contents_editor', PARAM_RAW);
$this->add_jumpto(0);
}
+1 -1
View File
@@ -172,7 +172,7 @@ class lesson_add_page_form_endofbranch extends lesson_add_page_form_base {
$this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes);
$mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions);
$mform->setType('contents_editor', PARAM_CLEANHTML);
$mform->setType('contents_editor', PARAM_RAW);
$this->add_jumpto(0);
}
+1 -1
View File
@@ -153,7 +153,7 @@ class lesson_add_page_form_endofcluster extends lesson_add_page_form_base {
$this->editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$PAGE->course->maxbytes);
$mform->addElement('editor', 'contents_editor', get_string("pagecontents", "lesson"), null, $this->editoroptions);
$mform->setType('contents_editor', PARAM_CLEANHTML);
$mform->setType('contents_editor', PARAM_RAW);
$this->add_jumpto(0);
}
+1 -1
View File
@@ -264,7 +264,7 @@ class lesson_display_answer_form_essay extends moodleform {
$mform->setType('pageid', PARAM_INT);
$mform->addElement('editor', 'answer', get_string('youranswer', 'lesson'), null, null);
$mform->setType('answer', PARAM_CLEANHTML);
$mform->setType('answer', PARAM_RAW);
$this->add_action_buttons(null, get_string("pleaseenteryouranswerinthebox", "lesson"));
}