From: scyrma Date: Fri, 6 Jun 2008 02:53:20 +0000 (+0000) Subject: MDL-14741: make the htmleditor work for the frontpage summary administration page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0d6ec7066b09e9f015e41e7520b37cbc4a19e97e;p=moodle.git MDL-14741: make the htmleditor work for the frontpage summary administration page --- diff --git a/lib/adminlib.php b/lib/adminlib.php index f99daf0c1b..3f5791cafd 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -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 = '
'.print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, $this->get_full_name(), $data, 0, true).'
'; + $return = '
'.print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, $this->get_full_name(), $data, 0, true, 'summary'). print($htmlEditorObject->activateEditor($this->get_full_name, 'summary')) .'
'; return format_admin_setting($this, $this->visiblename, $return, $this->description, false, '', NULL, $query); }