mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-19211 wrong editor settings forms finally gone, yay!
This commit is contained in:
parent
6693bd8494
commit
e065ea4f06
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user