summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-02 12:24:31 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-02 12:24:31 +0000
commit6628668e2fbedc5ccd7d47f7a2147033fc8ea93e (patch)
treed7453d81ee439e5e47f992e101d5466669a291f0
parent1e0d47027e30fff6d0f11857fff8c4f1a2f17fcb (diff)
#1484856
git-svn-id: https://svn.roundcube.net/trunk@1464 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 8839779af..71545e892 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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;