From 0d6ec7066b09e9f015e41e7520b37cbc4a19e97e Mon Sep 17 00:00:00 2001 From: scyrma Date: Fri, 6 Jun 2008 02:53:20 +0000 Subject: [PATCH] MDL-14741: make the htmleditor work for the frontpage summary administration page --- lib/adminlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/adminlib.php b/lib/adminlib.php index f99daf0c1bb..3f5791cafd9 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); }