blocks/html MDL-19844 Very minimal fixes to make HTML work. Files still not working properly, see MDL-19844

This commit is contained in:
Martin Dougiamas 2010-04-26 07:56:23 +00:00
parent 9f6e1e71ed
commit 94ee9ae007
2 changed files with 10 additions and 4 deletions

View file

@ -37,8 +37,10 @@ class block_html_edit_form extends block_edit_form {
$mform->addElement('text', 'config_title', get_string('configtitle', 'block_html'));
$mform->setType('config_title', PARAM_MULTILANG);
// TODO MDL-19844 should use the new editor field type.
$mform->addElement('htmleditor', 'config_text', get_string('configcontent', 'block_html'));
// TODO MDL-19844 still needs to be fixed to support files properly
$editoroptions = array('maxfiles' => EDITOR_UNLIMITED_FILES, 'trusttext'=>true, 'context'=>$this->block->context);
$mform->addElement('editor', 'config_text', get_string('configcontent', 'block_html'), null, $editoroptions);
$mform->setType('config_text', PARAM_RAW); // no XSS prevention here, users must be trusted
}
}
}