MDL-19211 wrong editor settings forms finally gone, yay!

This commit is contained in:
Petr Skoda 2010-07-10 11:00:00 +00:00
parent 6693bd8494
commit e065ea4f06

View File

@ -184,24 +184,6 @@ abstract class texteditor {
}
}
//TODO: this is very wrong way to do admin settings - this has to be rewritten
require_once($CFG->libdir.'/formslib.php');
/**
* Editor settings moodle form class.
*
* @copyright 2010 Dongsheng Cai
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package moodlecore
*/
class editor_settings_form extends moodleform {
public function definition() {
$mform =& $this->_form;
$mform->addElement('hidden', 'action', 'edit');
$this->add_action_buttons(true, get_string('savechanges'));
}
}
//=== DEPRECATED =====================
/**
* can_use_html_editor is deprecated...
@ -213,5 +195,5 @@ function can_use_html_editor() {
//TODO: eradicate completely, replace with something else
$tinymyce = get_texteditor('tinymce');
return $tinymyce ->supported_by_browser();
return $tinymyce->supported_by_browser();
}