From a01b3bf9aee82b142724eb769a40a4d6df5d9e26 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 23 Jul 2009 02:57:20 -0400
Subject: [PATCH] - removed hardcoded 'compose-body' identifier (#1485996)

---
 program/steps/mail/compose.inc |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 1d3a3df..1e05c43 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -353,7 +353,7 @@
   unset($attrib['form']);
   
   if (empty($attrib['id']))
-    $attrib['id'] = 'rcmComposeMessage';
+    $attrib['id'] = 'rcmComposeBody';
 
   $attrib['name'] = '_message';
 
@@ -413,6 +413,8 @@
   $textarea = new html_textarea($attrib);
   $out .= $textarea->show($body);
   $out .= $form_end ? "\n$form_end" : '';
+
+  $OUTPUT->set_env('composebody', $attrib['id']);
 
   // include HTML editor
   rcube_html_editor();
@@ -874,7 +876,7 @@
     $useHtml = ($useHtml && $MESSAGE->has_html_part());
 
   if (empty($attrib['editorid']))
-    $attrib['editorid'] = 'rcmComposeMessage';
+    $attrib['editorid'] = 'rcmComposeBody';
 
   if (empty($attrib['name']))
     $attrib['name'] = 'editorSelect';

--
Gitblit v1.9.1