summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-06-02 12:24:31 +0000
committeralecpl <alec@alec.pl>2008-06-02 12:24:31 +0000
commitc5fb694f36374e9750de93acbec83597bc039738 (patch)
treef057b758f2c9b989ab976c45403e0d15ec97a023 /program/js/app.js
parent065f2762f289d1ca702aca675163d6d21bc0bf26 (diff)
#1484856
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 8839779af..71545e892 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1838,9 +1838,9 @@ function rcube_webmail()
var input_cc = rcube_find_object('_cc');
var input_bcc = rcube_find_object('_bcc');
var input_subject = rcube_find_object('_subject');
- var input_message = rcube_find_object('_message');
-
+ var editor, input_message;
var str = '';
+
if (input_to && input_to.value)
str += input_to.value+':';
if (input_cc && input_cc.value)
@@ -1849,8 +1849,14 @@ function rcube_webmail()
str += input_bcc.value+':';
if (input_subject && input_subject.value)
str += input_subject.value+':';
- if (input_message && input_message.value)
+
+ if (editor = tinyMCE.get('compose-body'))
+ str += editor.getContent();
+ else
+ {
+ input_message = rcube_find_object('_message');
str += input_message.value;
+ }
if (save)
this.cmp_hash = str;