mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-14741: make the htmleditor work for the frontpage summary administration page
This commit is contained in:
parent
0687e5552c
commit
0d6ec7066b
@ -2630,10 +2630,10 @@ class admin_setting_special_frontpagedesc extends admin_setting {
|
||||
}
|
||||
|
||||
function output_html($data, $query='') {
|
||||
global $CFG;
|
||||
global $CFG, $htmlEditorObject;
|
||||
|
||||
$CFG->adminusehtmleditor = can_use_html_editor();
|
||||
$return = '<div class="form-htmlarea">'.print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, $this->get_full_name(), $data, 0, true).'</div>';
|
||||
$return = '<div class="form-htmlarea">'.print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, $this->get_full_name(), $data, 0, true, 'summary'). print($htmlEditorObject->activateEditor($this->get_full_name, 'summary')) .'</div>';
|
||||
|
||||
return format_admin_setting($this, $this->visiblename, $return, $this->description, false, '', NULL, $query);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user