From c5fb694f36374e9750de93acbec83597bc039738 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 2 Jun 2008 12:24:31 +0000 Subject: #1484856 --- program/js/app.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'program') 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; -- cgit v1.2.3